HyunTools
Views 0

Regex tester

Test JavaScript patterns, inspect capture groups and preview replacements.

Enter the pattern without / delimiters. Maximum 1,000 characters.

Flags

Up to 1,000 characters. Leave empty to delete matches. With g, replace all matches; otherwise, only the first.

Replacement syntax

$1…$99 capture groups · $<name> named group · $& matched text · $$ literal $

$` text before the match · $' text after the match. For line breaks, press Enter. Backslash escapes and JavaScript functions are not evaluated.

51 / 50,000

Match preview

Matched text will be highlighted here after running the test.

Run the test to see matches.

Patterns run only when you press Run test, in a separate browser worker. Tests stop after about 1.5 seconds. Inputs are not uploaded or saved.

Open JSON, encoding and other developer tools →