● online

Regex Tester

Write a regular expression and watch every match highlight live in your test text, with flags and capture groups visible.

How to use the Regex Tester

  1. Enter your regular expression and any flags.
  2. Paste the text you want to test against.
  3. Review the highlighted matches and captured groups.

About the Regex Tester

Regular expressions are far easier to build incrementally than to write correctly in one attempt, which is why immediate visual feedback matters so much. Start with a literal string, then generalise one piece at a time and watch the highlighting change. This uses the JavaScript regex engine, so the syntax matches what you will get in browser and Node code — some patterns from PCRE or Python will behave differently.

Frequently asked questions

Which regex flavour is used?

JavaScript's engine, so the behaviour matches what you get in browser and Node code.

What do the flags mean?

g matches all occurrences rather than stopping at the first, i ignores case, and m makes ^ and $ match at line boundaries.

Why does my pattern match nothing?

Common causes are unescaped special characters like . ( ) [ ] and a missing global flag when you expect multiple matches.

Related free tools

← Back to all 106 free online tools

Runs entirely in your browser — nothing you enter is uploaded. Last reviewed and updated .

The Tools Guru Editorial Team

Three front-end engineers and technical writers in Punjab, Pakistan, shipping browser software since 2011. Every formula on this site is implemented from a primary source and checked against an independent reference implementation before release — see our editorial policy. Spotted a wrong number? Tell us and we will reproduce it, usually the same working day.

Explore all 106 free tools

Results filter as you type. Press Control plus K to jump here. Ctrl K
106tools0uploads to servers100%free forever

Trending now

All tools