regex101

Online regex tester and debugger with flavor selection and code generation

92.0
Score in best regex testers
Check regex101.com (opens in a new tab)AlternativesCompareShare

Opens the official site in a new tab. Check current plans and terms there; nothing is purchased on listme.name.

Ranked 1 of 8 in best regex testers

The most complete free editor, with many flavors, a debugger, a flavor converter, a code generator and unit tests on one page. Unlike RegExr, it covers flavors beyond JavaScript and PCRE, though its explanation is labeled Pro.

Best for Testing and debugging patterns across languages

About regex101

regex101 shows matches as you type and lists what each group captured, including named groups. The flavor selector covers PCRE2 (PHP), JavaScript, Python, Golang, Java, .NET (C#), Rust, POSIX ERE and POSIX BRE. A debugger helps investigate unexpected results, a converter adapts a pattern and its flags to another flavor, and a code generator writes the expression into code.

Results can be exported as JSON, JSON Lines, CSV or plain text, and unit tests can be written against an expression. The homepage labels its pattern explanation as a Pro feature, and it lists an AI assistant for building patterns. The site links no source repository, so it is not presented here as open source.

Key features

  • Live matches and group capture
  • Flavor selector
  • Regex debugger
  • Code generator
  • Unit tests

Strengths

  • Covers many flavors, including PCRE2, JavaScript, Python, Java and .NET
  • Code generator and flavor converter in one editor
  • Unit tests and exports to JSON, CSV or plain text

Limits

  • Pattern explanation is labeled as a Pro feature
  • The homepage links no source repository

Where regex101 ranks

How regex101 compares

ProductScorePricePlatformsRegex flavorsDraws a diagramTest suitesCode snippets
#1regex10192.0Free plan, paid upgradesWebPCRE2, JavaScript, Python, Java, .NET, Golang, Rust, POSIXNoYesYes
#2RegExr84.0Free and open sourceWebJavaScript and PCRENoYesNo
#3Debuggex82.5Free plan, paid upgradesWebJavaScript, Python and PCREYesYesYes
#4RegexBuddy80.0PaidWindowsMany, including PCRE, Java, JavaScript, Python, .NETNoNoYes
#5iHateRegex78.0FreeWebNot listed on the homepageYesNoNo

The full comparison table for best regex testers has all 8 products.

Questions about regex101

Is regex101 free?
regex101 can be used without paying: Free to use; a paid Pro tier adds features such as the pattern explanation. Check the vendor’s pricing page for current limits.
Is regex101 open source?
No. regex101 is proprietary software; its source code is not public.
Which platforms does regex101 support?
regex101 is available on: Web.
What is regex101 best for?
Testing and debugging patterns across languages. In our ranking of regex testers it is number 1 of 8 with a score of 92.0.
What are the best alternatives to regex101?
The highest-ranked alternatives on listme.name are RegExr, Debuggex, RegexBuddy, iHateRegex.

Show this ranking on your site

If you make or maintain regex101, this badge links back to this page and shows its current rank. It updates when the ranking does.

Ranked #1 of 8 regex testers on listme.name
<a href="https://listme.name/software/regex101"><img src="https://listme.name/badge/regex101.svg" height="28" alt="Ranked #1 of 8 regex testers on listme.name"></a>