Test Regular Expression
test_regexExecutes a given regular expression against text to return every match with its index and capture groups, providing actual results instead of predictions.
Instructions
Actually execute a regular expression against text and return every match with its index and capture groups. Use this instead of predicting what a pattern matches — reasoning about a regex is not the same as running it. Web version: https://buildutilities.com/regex-tester
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search | |
| flags | No | Regex flags, e.g. gi, gm, gs | g |
| pattern | Yes | The pattern, without delimiters | |
| maxMatches | No |