Skip to content

Regex Tester

Test regular expressions with live highlighting and replace.

  • 100% free
  • JavaScript flavour
  • Runs in your browser

Last reviewed by the OnlineToolPro team

//gu
0 characters

Matches

Enter a pattern and some text to see matches highlighted.

What is the Regex Tester?

Write a regular expression and see every match highlighted as you type, with capture groups listed. Try a replacement to see the result. Uses the JavaScript regex engine built into your browser.

How it works

How to use the Regex Tester

3 simple steps. No experience needed.

What can you use it for?

  • Build and debug a pattern before putting it in code.
  • Find all email addresses or dates in some text.
  • Preview a find-and-replace across a document.

FAQ

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript). Most patterns work the same in other languages, but some features differ.

Other tools you might find useful next.

More Developer Tools

Format, convert and check code and data. 9 free tools.

Browse Developer tools
Other categories:YouTubeTextImagesPDFs