regex_test
Match, replace, or split text via PCRE regex. Provides offsets, capture groups, and ReDoS protection by erroring on catastrophic patterns.
Instructions
Match, replace or split text with a PCRE regular expression. Returns offsets and capture groups. ReDoS-protected: catastrophic patterns return an error rather than hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| flags | No | any of i, m, s, u, x | |
| pattern | Yes | ||
| operation | No | match_all | |
| replacement | No | ||
| split_limit | No |