Product Design, Manufacturing & Innovation Resources
Home » Online Tools » regex101 Regular Expression Tester

regex101 Regular Expression Tester

regex101 is an online tester and debugger for regular expressions. It highlights matches live, lists the capture groups and supports the flavors PCRE2, JavaScript, Python, Go, Java, .NET, Rust and POSIX. Substitution, extraction and unit test modes are included.

A step by step debugger, a code generator, a flavor converter, a benchmark function and a quick reference sit in the same interface. Patterns are saved and shared by link. Some features, such as the token by token explanation, belong to the Pro plan. The matching and testing core is free.

The distinctive point is the flavor switch: the same pattern is tested under the engine your code will actually use. Engineers and scientists apply it to log parsing, data cleaning and input validation, and product developers to form and API rules.

Disciplines: Software engineering, Data engineering, Web development, DevOps, Cybersecurity.
Free alternative to RegExr, Visual Studio Code, RegexBuddy.
regex101 Regular Expression Tester compared with RegExr, Visual Studio Code and RegexBuddy
regex101RegExrVisual Studio CodeRegexBuddy
Supported flavors: PCRE2, PCRE (legacy), JavaScript, Python, Go, Java, .NET, Rust, POSIX ERE and POSIX BRE, selectable per pattern so the test matches the engine your code uses.Supported flavors: Two flavors: JavaScript and PHP/PCRE. The JavaScript mode uses the browser RegExp engine.Supported flavors: The Find control has a Regular Expression option. The editor documentation does not name the regex flavor.Supported flavors: Java, JavaScript, .NET, Perl, PCRE, Python, Ruby, PHP, PowerShell, PostgreSQL, MySQL, Oracle, RE2, POSIX, ICU and others.
Debugging and explanation: A regex debugger, a benchmark function and a formatter. The detailed explanation of tokens, groups and flags is a Pro feature.Debugging and explanation: The Explain tool describes the expression in plain English, and the Details view lists capture groups. Test suites define strings that must or must not match.Debugging and explanation: The tester steps through matches and shows the full matching process with a report for each match.
Substitution, conversion and code output: Substitution and extraction modes, a code generator, export of matches as JSON, CSV or plain text, and conversion between flavors.Substitution, conversion and code output: Replace and List tools, a cheat sheet and a full reference, plus saving and sharing of expressions.Substitution, conversion and code output: Capture groups are referenced by their number in the replacement string, with case modifiers \u, \U, \l and \L. Searching across files uses the Search view.Substitution, conversion and code output: Converts regexes between flavors and generates code snippets for C#, VB.NET, Delphi, Java, Perl, PHP, JavaScript, Python, Ruby and C/C++.
Platform and access: Online tester. Patterns can be saved and shared by link, and published to a community library.Platform and access: Online tool. Signing in persists favorites and patterns, and it is open source with a project on GitHub.Platform and access: Code editor, so regex work happens on the files you have open.Platform and access: Windows 7 to 11, and Linux through WINE.
Licence and cost model: The matching and testing core is free, with Pro and Enterprise tiers for additional features.Licence and cost model: Shows a developer-oriented ad.Licence and cost model: Licensed software with new, upgrade and multi-user licences, and a money-back guarantee.

More Coding tools

Suggest your best online tool:

Do you know a better, a complementary or a replacement website to the one listed above ?

> Suggest it here <

10th year anniversary

Full size images and downloads are only available, 100% free, for registered members.

> Login <