How to use Regex Tester
How do I use it?
- Enter JavaScript Regular Expressions, Marks and Text to Match.
- Run to see match locations and capture groups. Switch modes to preview replacements or explain the pattern.
- Time-consuming expressions can be cancelled and then continue to be tested.
How it works and examples
/(id)=(\d+)/g · id=12 id=34 → [id, 12], [id, 34]
Use the browser CMAScript regular. Position is UTF-16 index from 0; g means global, i ignore case, m change behavior at the end of the line.
Input limits
- The expression is filled in with the sign bar, and the expression does not need a slash. The zero-long match will go forward. The maximum 200 matches, and the slow calculation will automatically stop.