Regular expression tester
Choose a preset or enter a JavaScript regular expression, then inspect its matches, positions, captures and named groups.
How to use
Input
Enter a pattern without enclosing slashes, choose JavaScript flags, and add text to test. Select Test expression.
Output
Review the result, then copy it or save the file.
Background
Regular expression tester
Patterns use the browser's JavaScript RegExp syntax. Global matching is controlled by g; positions are UTF-16 offsets. Pattern evaluation runs in a separate Worker and is stopped after one second. Up to 1,000 matches are returned.
How input and results are handled
- Input
- Input is processed in your browser.