A LITTLE CLARITY, RIGHT HERE

Regular Expression Tester

Test JavaScript regular expressions with safe match highlighting, indexes, capture groups and flag controls. Worker timeouts protect the interface from slow patterns.

Let’s work it out.

On your device
Regular Expression Tester inputs and actions
Enter the pattern without surrounding / delimiters. Uses JavaScript syntax, not PCRE.
Supported: g i m s u y. Each flag once.

Highlighted matches

0 matches

            
Match text, positions and capturing groups

    Expressions and test text stay in your browser. Execution runs in a dedicated local worker and is stopped after approximately 500 ms. Limits: 4,000 pattern code units, 100,000 test-text code units, 1,000 matches, 100 capturing groups and 1,000,000 captured characters.

    Global finds all matches; without g only the first match is returned. Sticky starts at index zero and, with g, continues only at the previous match's end. Zero-length matches use a narrow highlight. Indexes count UTF-16 code units; end positions are exclusive. Unsupported syntax depends on your browser's JavaScript engine.

    Processed in your browser. Your content is not sent to KEVEEK.

    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.