All tools / Developer and web / Regex tester

Regex tester

Test regular expressions with live matches.

About this tool

Write a JavaScript regular expression, set flags and see every match with its position and capture groups update as you type.

How to use it

  1. Enter the pattern and flags.
  2. Paste your test string.
  3. Read the matches below.

Questions

What does the g flag do?
It finds all matches instead of only the first.
Which regex flavor is it?
JavaScript. Some features from other languages, such as possessive quantifiers, are not available.

More tools

tools4freeonline.com google.com, pub-5366955859957266, DIRECT, f08c47fec0942fa0google.com, pub-5366955859957266, DIRECT, f08c47fec0942fa0