Regex Tester

Write a pattern, choose the flags and paste test text to see all matches with their index and capture groups. Patterns that could freeze the page through catastrophic backtracking are refused.

Loading the tool…

How it works

  • The pattern is compiled with JavaScript’s RegExp. All matches are listed (the g flag is added automatically), with numbered and named capture groups.
  • Runs entirely in your browser: what you paste is not sent anywhere.

Assumptions and limits

  • JavaScript regex syntax only: PCRE, Python and .NET features such as possessive quantifiers or recursion are not supported. The tester limits input to 50,000 characters and matches to 1,000, and refuses nested unbounded quantifiers like (a+)+ that cause exponential backtracking.

Frequently asked questions

What do the flags mean?

i ignores case, m makes ^ and $ match each line, s lets . match newlines, u enables Unicode mode.

Related tools

Last reviewed 2026-10-28. More developer, web & seo tools tools. See the disclaimer.

Report a problem with this tool