How to use this tool
Enter a JavaScript regex pattern without slash delimiters, select flags and enter sample text. Inspect highlighted matches, indexes and capture groups. Try an example, copy matches or reset. Syntax and timeout errors appear beside the tool.
How it works
A dedicated Web Worker compiles and executes the JavaScript regular expression. Global matching advances correctly after empty matches, respecting Unicode code points. The main page terminates and replaces a worker that exceeds the processing deadline.
A QUICK EXAMPLE
Put it into practice.
Use \b\w+\b with global enabled to find words. A pattern such as (?<name>[A-Za-z]+) also shows the named capture. Multiline changes ^ and $ anchors; dot-all lets . match line breaks.
Good to know
This is JavaScript regex syntax, not PCRE. Supported flags are g, i, m, s, u and y where the browser supports them. Worker execution, input length and match counts are bounded; catastrophic patterns time out instead of freezing the page. Match indexes use UTF-16 code units. Zero-length matches are listed even when there is no visible text to highlight.
Common questions
Are expressions or sample text uploaded?
No. Expressions execute only in a local worker. The worker loads a static script from KEVEEK but does not transmit the pattern or text.