Regex Tester

Test JavaScript regular expressions in the browser, see matches, groups, flags, and errors without sending text to the server.

About the regex tester

The regex tester compiles regular expressions with browser JavaScript RegExp and shows matches, captured groups, named groups, selected flags, optional indices, and engine error messages.

How to test regex online

Type the pattern without delimiters, paste test text, adjust flags, and inspect the match list. Shared links preserve only flags and limit by default; include content only when it can become public.