awesome-regex

Regex toolkit

A curated collection of Regex libraries, tools, frameworks and software for developers.

A curated collection of awesome Regex libraries, tools, frameworks and software

GitHub

2k stars
55 watching
167 forks
last commit: almost 2 years ago
Linked from 5 awesome lists

awesomeawesome-list

Awesome Regex / Documentation

Regular Expression Language - Quick ReferenceMSDN documentation about Regex
Regular ExpressionsMDN chapter about JavaScript regular expressions
Perl Regular Expression SyntaxBoost documentation
Perl 6Regexes in Perl 6
PCREConcatenated PCRE man pages
ECMAScript 6New Regexes in ECMAScript 6
regex header in C++in C++
class Pattern in JavaJava 7 docs
class Regex in ScalaScala Regex
Python re moduleRegular Expressions Python module tutorial
Regular Expressions in PerlIntroduction and Reference Links

Awesome Regex / Prototyping and Testing

DebuggexOnline visual Regex tester
ExtendsClassOnline visual Regex tester
NodexrOnline node-based Regex editor
RegexrWebsite for interactive Regex prototyping with syntax highlighting (by @gskinner)
Regex101Online Regex tester, debugger with highlighting
RubularRuby-based regular expression editor and tester
Rex VAJAX Regular EXpression eValuator
RegVizTool for debugging JavaScript regular expressions in a visual way
RegulexJavaScript Regular Expression Visualizer
PyRegexOnline Regex tester to check validity of Regex in the Python language Regex subset
pythexQuick way to test your Python regular expressions
RegexperRegex visualizer for JavaScript using railroad diagrams
HiFi Regex TesterLive JavaScript Regular Expression Tester
Regex Hero.NET online Regex tester
Regex Storm.NET Regex tester with highlighting and detailed results output
RegEx to StringsJavaScript library and online tool to generate strings that a regular expression would match
RegexPalJavaScript + PCRE online tester
RegexTesterRegular Expression Tester with highlighting for Javascript and PCRE
Free FormatterFree online Regex tester
Regex Tester - GolangA secure regular expression tester. built using Go
PHP Live RegexPHP specific regular expression tester with live evaluation and code generation for all PHP's regex functions

Awesome Regex / Generators

Txt2ReGenerate Regular expressions based on a string
Regex Generator++Automatic Generation of Text Extraction Patterns from Examples
regexgen3,344over 2 years agoGenerates regular expressions that match a set of strings
RegexGenerator947about 6 years agoA tool for generating regular expressions for text extraction (by @MaLeLabTs)
Gamon's numberic range generatorRegex Numeric Range Generator, when you need to match an integer range
rgxgCommand line tool to generate Regex
Strings to RegExJavaScript library and online tool to generate a regular expression that matches strings
Regex GuidePlain Text to Regex Generator
grex7,334almost 2 years agoA command-line tool and library for generating regular expressions from user-provided test cases
AutoRegexEnglish <-> Regex from an AI

Awesome Regex / Security

SafeRegex52over 2 years agoA command-line tool for testing regular expressions for vulnerabilities

Awesome Regex / Learning

WikipediaEntry on regular expressions
Learn Regex The Hard WayIn-progress book that quickly teaches you regular expressions
Regular Expression Matching Can Be Simple And FastBasic concept of how Regex parsing works
A Tao Of Regular Expressions[PDF] - What are Regular Expressions
Regular-Expressions.infoInformative website for learning regular expressions
RexEggA regular expressions tutorial that goes deep into advanced features
Try RegexTry Regex is an interactive regular expressions tutorial
UdemyA Basic Introduction To Using Regular Expressions In Programming
CodecademyHow to use of regular expression
Regex golfRegex golf with Peter Norvig
Python Regular ExpressionsA good introduction to Python Regular Expressions from Google
/Reg(exp){2}lained/: Demystifying Regular ExpressionsFluent 2012 talk reviewing and visualizing basic and intermediate Regular Expressions
Regular Expressions - Everything you should knowPDF Series
The Java Tutorials
Regex Syntax Summary
How Regexes work
Learn Regular Expressions for Beginners
Java Regex Tutorial
Javascript.info - Regular expressionsRegular expressions section in The Modern JavaScript Tutorial
Useful Regexes
Teach Yourself Regular Expressions
Interactive Regex TutorialLearn Regex step by step, from zero to advanced

Awesome Regex / Libraries

TreFree and portable approximate Regex matching library
Go-Restructure591almost 2 years agoMatch regular expressions into struct fields in Go (by @alexflint)
js-regex67over 11 years agoChainable API for constructing Regexes
VerbalExpressionsVerbalExpressions is a cross-language library that helps to construct difficult regular expressions
Super Expressive4,630about 2 years agoSuper Expressive is a JavaScript library that allows you to build regular expressions in natural language
XRegExpJavaScript Regex library
RE29,023almost 2 years agoRE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library
Hyperscan4,857over 2 years agoHigh-performance multiple Regex matching library

Awesome Regex / Collections

RegexLibRegular Expression Library (5000+ indexed expressions)
RegexhubUseful Regex Patterns
RGXP.RURegular Expression Patterns (+testing)

Awesome Regex / Explanation

RegexTranslatorA web app to decode Regex into plain English. You can edit it and translate back
Explain.plExplain Regular Expressions

Awesome Regex / Exercises

HackerRank Regex ChallengesRegex challenges with varying levels of difficulty
RedokuLittle Regex Sudoku/Crossword thing (by @padolsey)
Regex Tuesday - Challenges89over 12 years agoChallenge list about Regex
Regex CrosswordA crossword puzzle game using regular expressions
RegexOneLearn regular expressions with simple, interactive examples
Regex ExercisesRegexp exercises
Regular Expression Crossword PuzzleA crossword puzzle with a neat web interface

Awesome Regex / Articles

5 Techniques to Improve Regex PerformanceCraft your own powerful, yet efficient regex
The Bad, the Better, and the BestHow a few characters can make a difference in performance
The Greatest Regex Trick EverSo you're doubtful at the mention of a "best Regex trick"?
Treat regular expressions as code, not magicIf you don’t write them carefully, you can end up with an unmaintainable monstrosity
Demystifying The Regular Expression That Checks If A Number Is PrimeHow a regular expression can check if a number is prime
Regex Tree: a regular expressions processor
The thirty minute regex tutorialRegular Expressions in 30 Minutes
Regular Expression Matching Can Be Simple And Fast
Regular Expressions in a post ES6 World
Regular expression (regex) performance: The fundamental guide
The New ‘Absent Operator’ in Ruby’s Regular Expressions
Optimizing regexes in Java
Use Regex to Test Password Strength in JavaScript
Java 101Regular Expressions in Java
Most Crazy RegexesStack Overflow
Regex HumorRegex jokes and cartoons
The true power of regular expressions
On code, early neural networks, and once discredited AI pioneersA short history of regexes

Awesome Regex / Books

Patterns, Automata, and Regular ExpressionsAl Aho and Jeff Ullman (1992) ( )
Beginning Regular ExpressionsAndrew Watt (2005)
Mastering Regular ExpressionsJeffrey E.F. Friedl (2006)
Regular Expression Pocket ReferenceTony Stubblebine (2007)
Introducing Regular ExpressionsMichael Fitzgerald (2012)
Regular Expressions CookbookJan Goyvaerts & Steven Levithan (2012)
Mastering Python Regular ExpressionsFelix Lopez & Victor Romero (2014)
JavaScript Regular ExpressionsLoiane Groner & Gabriel Manricks (2015)
Regex - the complete tutorial
Python re(gex)?1,767about 3 years agoSundeep Agarwal (2020)

Awesome Regex / Benchmarks

Benchmark of Regex Libraries
Java regular expression library benchmarks – 2015
Languages Regex Benchmark315over 2 years agoIt's just a simple Regex benchmark of different programming languages
Performance comparison of regular expression engines
Regex Performance103almost 4 years agoPerformance comparison of regular expression engines

Awesome Regex / Cheat Sheets

Regular Expressions Cheat Sheet
Regex Cheat Sheet
MIT Cheat Sheet
Java Cheat Sheet
JavaScript Cheat Sheet
RegexLearn Cheat Sheet

Backlinks from these awesome lists:

More related projects: