MongooseA living laboratory of myriad worlds.

Changelog

All public mailing lists

$string_utils:re_split

2025-07-11 00:44 UTC · daiverd (#2)

split_by_regex function for flexible string splitting

Implements a regex-based string splitting function that extracts text

segments between pattern matches. Supports any PCRE pattern as delimiter

and optional inclusion of empty segments.

- Works with complex regex patterns, not just simple characters

- Handles edge cases like leading/trailing delimiters

- Configurable blank segment handling via include_blanks parameter

Back to Changelog