regex_test
Test a JS-style regex against text to get match count and up to 20 match slices.
Instructions
Test a JS-style regex against text. Returns match count and up to 20 match slices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| flags | No | Flags e.g. gi (default g) | |
| pattern | Yes | Regex pattern (no /slashes/) |