Home › text utility › Regex Pattern Tester

Regex Pattern Tester

Regex Pattern Tester runs a regular expression against your text and lists every match with its position and captured groups, which is the fastest way to check a pattern before putting it into code.

How to use Regex Pattern Tester

  1. Type the pattern and its flags in the two fields.
  2. Paste the text to search into the editor.
  3. Run the test to see each match, its start position and any capture groups.

Where Regex Pattern Tester is useful

Formats, algorithms and limits

Patterns use JavaScript regular expression syntax, so what you test here behaves identically in Node and in the browser. The global flag is added automatically when you omit it, because a pattern without g can only report the first match while a test tool should list them all. Positions are character indices into the text as pasted.

Troubleshooting and honest limits

Frequently asked questions

Which flavour of regular expressions is used?

JavaScript, so lookbehind and named groups are supported in any modern browser. Patterns behave the same in your code if you use JavaScript.

Why does my pattern only return one match?

That happens without the global g flag. This tester adds g for you when it is missing so that all matches are listed.

What do the capture groups show?

Each group is the text captured by one set of parentheses, in order. Groups appear in the results alongside the full match.

Can I use the result to replace text?

The tester shows matches; use the pattern with your language's replace function, or the Text Diff tool to check the result of the substitution.

Related tools

AI Greetings & Wishes Planner AI Plagiarism & Copy Checker AI Text Translator Gemini AI Smart Writer Text Diff & Compare Tool Base64 Encoder/Decoder

Page written and reviewed by the FreeConvertio engineering team on 2026-10-14. Regex Pattern Tester runs entirely in your browser — no uploads, no account and no daily limits.