regex
Test regex patterns against strings with match details, groups, and indices, and generate working code in JavaScript, Python, Go, Rust, and Java.
Instructions
Test a regex pattern against a string (with match details, groups, indices) and generate working code in JS/Python/Go/Rust/Java [PRO - 3 free trials]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Regex flags, e.g. 'gi' for global+case-insensitive (default: 'g') | |
| pattern | Yes | Regular expression pattern (without delimiters) | |
| languages | No | Languages for code generation: javascript, python, go, rust, java (default: all) | |
| test_string | No | String to test against (omit to just validate the pattern) | |
| generate_code | No | Generate code snippets in multiple languages (default: false) |