Description
regex101 is an online tool for building, testing and debugging regular expressions. You enter a pattern and a test string and see live matches, with the groups each match captures and named groups listed separately. It supports several flavors, including PCRE2 (PHP), JavaScript, Python, Golang, Java, .NET (C#), Rust, and POSIX syntax for grep and sed. A converter adapts patterns, flags and replacements from one flavor to another and points out compatibility changes. Other tools generate code for a pattern, benchmark it, format it, and export matches to JSON, JSON Lines, CSV or plain text. A regex debugger helps when a match behaves unexpectedly. You can save and share your examples, and publish them to a public library. Some features, including the explanation panel and the AI Assistant, are marked Pro.…
Preview
Highlights
- Live matching with captured and named groups
- Flavors include PCRE2, JavaScript, Python, Golang, Java, .NET, Rust and POSIX
- Converter that adapts patterns between flavors
- Code generator, regex debugger and benchmark tool
- Save, share and publish examples to a library
Ratings & Reviews
No ratings yet
Be the first to rate regex101.
People also visit
regex101 FAQ
What is regex101?
regex101 is a browser-based tester for regular expressions. You write a pattern, paste some text, and see the matches, groups and explanations as you type.
Which regex flavors does it support?
PCRE2 (PHP), JavaScript, Python, Golang, Java, .NET 10.0 (C#), Rust, POSIX ERE, POSIX BRE (grep and sed) and legacy PCRE.
Is there a paid plan?
Yes. The site offers an Upgrade to Pro option. The explanation panel and the AI Assistant are marked Pro.
Can I export my results?
Yes. Match information can be exported to JSON, JSON Lines, CSV or plain text.
Can I convert a regex to another language?
Yes. The regex converter adapts patterns, flags and replacements across flavors and explains the compatibility changes it makes.
What are the best regex101 alternatives?
Popular alternatives to regex101 include RegExr, iHateRegex and Regex Hub. See all regex101 alternatives





