Instructions
Regex tester
How to use
- Enter a pattern and flags, then the text to test.
- In the replacement, $1 or $<name> stands for a group.
Supported input
- JavaScript regular expressions.
- Text up to 200,000 characters and patterns up to 500.
- Up to 2,000 matches are listed, named groups by name.
- The pattern, flags and replacement go into the address so a link carries them; the test text does not.
Input example
\d{3}-\d{4} · call 010-1234-5678Result example
1. "010-1234" @3
Troubleshooting
- Nothing is produced for empty input.
- Split very long text into parts.
Limitations
- Syntax can differ from other engines such as PCRE or Python.
- A pattern that runs for more than 2 seconds is stopped with a message.
How it works
- Runs a regular expression on text, highlights each match and lists its groups, and previews a replacement.