Skip to content
R

regex101

Building and testing regular expressions

Freemium

#3440in Developer Tools
0In stores

Description

regex101 is an online tool for building, testing and debugging regular expressions. You enter a pattern and a test string and see live match…

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

R

RegExr

Building and testing regular expressions

Developer Tools
Launch
I

iHateRegex

Understand, test, and share regex

Developer Tools
Launch
R

Regex Hub

Useful Regex Patterns

Developer Tools
Launch
R

rgx.tools

AI Powered Text to Regex

Developer Tools
Launch
R

RegexAI

Generates working regular expressions from plain English descriptions

Developer Tools
Launch
R

RegEx Helper

Free AI-Powered RegEx Generator

AI
Launch

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

Developer Stuff

Badges