Run a JavaScript regular expression on sample text.
Inputs and results
Input: Pattern, flags and test string.
Output: Highlighted matches, match information or syntax error.
How it works
Pattern, flags and test string.
Enter a pattern and flags, then inspect a short test string.
Examples
science Example to try
Pattern [0-9]+ with g finds 12 and 34 in Order 12, batch 34.
Limitations
JavaScript syntax differs from other engines. Pathological expressions run on the main thread and can freeze a tab; avoid huge input.
Processing & Privacy
Processing uses your browser rather than uploading the supplied input to a processing server. Fonts and tool libraries can make third-party network requests. Optional analytics loads after consent. See the Privacy Policy for site-wide details.