Skip to main content
忆云竹

Regular expression tester

Test JavaScript regular expressions, inspect match positions and capture groups, and preview text replacements as you type.

Updates as you type or change an option

Matches

Replacement preview


Processed in this browser. Nothing is uploaded or saved.

About this tool

Test JavaScript regular expressions, inspect match positions and capture groups, and preview text replacements as you type.

How to use

Enter a pattern without enclosing slashes, its flags and some test text. Use g for all matches, i to ignore case and m for multiline anchors. Replacements support JavaScript syntax such as $1 and $.

Expressions run in a separate worker and stop after 1.5 seconds. Limits are 100,000 text characters, 4,000 pattern characters and fewer than 2,000 matches. Narrow the input if results become too large.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.