Regex Tester
RegexTesterRegex Tester: Regex Tester tests regular expressions against input strings across operations like match, search, replace, and split. It reports compilation validity, syntax error details, execution timing, and structural pattern analysis. (Cost: 1 credit)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>",
"text": "<text>"
},
"name": "RegexTester"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to test the pattern against. Maximum 20000 characters | |
| flags | No | Regex flags: g (global), i (case insensitive), m (multiline), s (dotall), u (unicode), y (sticky) | |
| pattern | Yes | The regular expression pattern to test. Maximum 500 characters | |
| test_type | No | Operation type | test |
| replacement | No | Replacement text for 'replace' operation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |