/awesome-regex

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

Creative Commons Zero v1.0 UniversalCC0-1.0

Awesome Regex

Awesome Main workflow

Introduction

A curated collection of awesome Regex libraries, tools, frameworks and software. The goal is to build a categorized community-driven collection of very well-known resources.

Inspired by awesome-dotnet, awesome-ruby, awesome-awesomeness and the whole awesome-* trend on GitHub. Thank you Reddit, Hacker News and Stack Overflow for the help.

Sharing, suggestions and contributions are always welcome! Please take a look at the contribution guidelines and quality standard first. Thanks to all contributors, you're awesome and wouldn't be possible without you!

Contents

Documentation

Prototyping and Testing

  • Debuggex - Online visual Regex tester.
  • ExtendsClass - Online visual Regex tester.
  • Nodexr - Online node-based Regex editor.
  • Regexr - Website for interactive Regex prototyping with syntax highlighting (by @gskinner).
  • Regex101 - Online Regex tester, debugger with highlighting.
  • Rubular - Ruby-based regular expression editor and tester.
  • Rex V - AJAX Regular EXpression eValuator.
  • RegViz - Tool for debugging JavaScript regular expressions in a visual way.
  • Regulex - JavaScript Regular Expression Visualizer.
  • PyRegex - Online Regex tester to check validity of Regex in the Python language Regex subset.
  • pythex - Quick way to test your Python regular expressions.
  • Regexper - Regex visualizer for JavaScript using railroad diagrams.
  • HiFi Regex Tester - Live JavaScript Regular Expression Tester.
  • Regex Hero - .NET online Regex tester.
  • Regex Storm - .NET Regex tester with highlighting and detailed results output.
  • RegEx to Strings - JavaScript library and online tool to generate strings that a regular expression would match.
  • RegexPal - JavaScript + PCRE online tester.
  • RegexTester - Regular Expression Tester with highlighting for Javascript and PCRE.
  • Free Formatter - Free online Regex tester.
  • Regex Tester - Golang - A secure regular expression tester. built using Go
  • PHP Live Regex - PHP specific regular expression tester with live evaluation and code generation for all PHP's regex functions.

Generators

  • Txt2Re - Generate Regular expressions based on a string
  • Regex Generator++ - Automatic Generation of Text Extraction Patterns from Examples
  • regexgen - Generates regular expressions that match a set of strings.
  • RegexGenerator - A tool for generating regular expressions for text extraction (by @MaLeLabTs)
  • Gamon's numberic range generator - Regex Numeric Range Generator, when you need to match an integer range.
  • rgxg - Command line tool to generate Regex
  • Strings to RegEx - JavaScript library and online tool to generate a regular expression that matches strings.
  • Regex Guide - Plain Text to Regex Generator.
  • grex - A command-line tool and library for generating regular expressions from user-provided test cases.
  • AutoRegex - English <-> Regex from an AI.

Security

  • SafeRegex - A command-line tool for testing regular expressions for ReDoS vulnerabilities.

Learning

Libraries

  • Tre - Free and portable approximate Regex matching library.
  • Go-Restructure - Match regular expressions into struct fields in Go (by @alexflint). js C#
  • js-regex - Chainable API for construting Regexes.
  • VerbalExpressions - VerbalExpressions is a cross-language library that helps to construct difficult regular expressions.
  • Super Expressive - Super Expressive is a JavaScript library that allows you to build regular expressions in natural language.
  • XRegExp - JavaScript Regex library.
  • RE2 - RE2 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.
  • Hyperscan - High-performance multiple Regex matching library.

Collections

  • RegexLib - Regular Expression Library (5000+ indexed expressions).
  • Regexhub - Useful Regex Patterns.
  • RGXP.RU - Regular Expression Patterns (+testing)

Explanation

  • RegexTranslator - A web app to decode Regex into plain English. You can edit it and translate back.
  • Explain.pl - Explain Regular Expressions.

Exercises

Articles

Books

Benchmarks

Cheat Sheets

Other awesome lists

Other amazingly awesome lists can be found at the official awesome list and here.