test_pattern
Test a regex pattern against sample code to identify match details, positions, and text for debugging custom vulnerability patterns.
Instructions
Test a regex pattern against sample code. Returns match details including positions and matched text. Useful for developing and debugging custom vulnerability patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | Yes | The regex pattern to test. | |
| sample | Yes | Sample code to test against. | |
| language | No | Optional language context for the pattern. |