Overview
regex101 is a popular online workbench for writing, testing and understanding regular expressions. You type a pattern and some test text, and matches are highlighted as you go while a side panel explains, token by token, what each part of the expression does.
It supports many regex flavours, including PCRE2 for PHP, JavaScript, Python, Go, Java, .NET, Rust and POSIX ERE and BRE, so you can check how a pattern behaves in the language you actually use. Beyond matching, it has a substitution mode, unit tests, a code generator that turns your pattern into ready-to-paste code, a quick reference of common tokens and a community library of published patterns.
The core tester is free to use in the browser without signing in. Accounts let you keep your saved expressions together, and a paid Pro tier adds extras; tools such as the regex formatter and benchmark carry a Pro label.
Categories
Features
- Live match highlighting with capture group and named group details
- Plain-English explanation of every token in the pattern
- Flavours including PCRE2, JavaScript, Python, Go, Java, .NET, Rust and POSIX
- Substitution mode for testing replacements
- Unit tests and a code generator for several languages
- Save and share links plus a public community pattern library
- Quick reference of frequently used tokens
- Regex formatter and benchmark tools, labelled Pro
Privacy
See the official privacy policy. Anything you save and share or publish to the library can be viewed by people who have the link or browse the library.
Pros & Cons
Pros
- No account needed for everyday testing
- Explanation panel makes it a good learning tool
- Testing in the right flavour avoids surprises between languages
- Shareable links make it easy to ask for help with a pattern
Cons
- Some tools are reserved for the paid Pro tier
- Shows a small sponsor ad
- Shared and library patterns can be seen by others, so avoid pasting sensitive test data
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Regex101 Editor's PickRegex ToolsAn interactive regular expression tester with live explanations.
Freemium No Signup Web API -
Regex Tools · RegexPlanet
Tests regular expressions across many programming languages.
Free No Signup Web -
Regex Tools · Debuggex
Visualizes regular expressions as railroad diagrams.
Freemium No Signup Web -
Regex Tools · Regex Tester
Tests and debugs regular expressions.
Free Web