Free Regex Tester

Test regular expressions against your text and see every match and captured group instantly — with a clear error when the pattern is invalid. Free, no sign-up.

✦ Live matchesCapture groupsClear errorsNo sign-up

Test your pattern

Type a pattern (without the / / slashes) and some test text, then press Test pattern. Matches and groups appear below. Everything runs in your browser.

How to test a regex

Type your pattern in the top box without the surrounding slashes — just \d+, not /\d+/ — and your test text below. Every match appears at once, with any captured groups.

Common patterns to try

Tick Ignore case (i) to match upper and lower case alike, and Multiline (m) so ^ and $ work on every line. If the pattern is invalid, the exact error is shown instead of a silent failure.

Frequently asked questions

What is a regular expression?

A regular expression (regex) is a pattern that describes text — for example, \d+ means one or more digits, and [A-Z][a-z]+ means a capital letter followed by lower-case letters. They are used to find, check and replace text in code, editors and forms.

How do I test a regex here?

Type the pattern (without the / / slashes) in the top box and your test text below, then press Test pattern. Every match is listed with its captured groups. The test also runs live as you type.

What are capture groups?

Parts of a pattern in (parentheses) are capture groups. For example, (\w+)@(\w+) matches an email-like word and captures the part before @ as Group 1 and the part after as Group 2.

What does the error mean?

If your pattern has a mistake — an unclosed bracket, for example — the tester shows Invalid pattern followed by the exact error from the browser, so you can see what to fix.

Which regex flavour is this?

This tester uses the JavaScript regular expression engine — the same one used in browsers and Node.js. Most common patterns work the same in Python, Java and other languages.

Is this regex tester free?

Yes. RegexForge is 100% free. No account, no sign-up, no limit. Your patterns and text never leave your browser.

More CodeLab tools

RegexForge is one of 9 free tools on CodeLab. Try the others — all free, all in your browser.

JsonForge  •  BaseSixFour  •  CsvShift  •  Unixly  •  IdForge  •  TokenPeek  •  SiteCheck  •  CronCraft

Back to all CodeLab tools →