How to use Regex Tester
How do I use it?
- Enter JavaScript Regular Expressions, Marks and Text to Match.
- Click to run to see matching, position and capture group; switch to replacement preview.
- Time-consuming expressions can be cancelled and then continue to be tested.
How it works and example
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.
/(id)=(\d+)/g · id=12 id=34 → [id, 12], [id, 34]
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.