{"id":13447961,"url":"https://github.com/aloisdg/awesome-regex","last_synced_at":"2025-04-17T05:31:43.787Z","repository":{"id":38291010,"uuid":"36005882","full_name":"aloisdg/awesome-regex","owner":"aloisdg","description":"A curated collection of awesome Regex libraries, tools, frameworks and software","archived":false,"fork":false,"pushed_at":"2024-10-19T23:28:23.000Z","size":97,"stargazers_count":1691,"open_issues_count":22,"forks_count":168,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-04-12T08:02:17.086Z","etag":null,"topics":["awesome","awesome-list"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aloisdg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-21T10:11:49.000Z","updated_at":"2025-04-10T07:46:30.000Z","dependencies_parsed_at":"2024-01-13T03:07:50.977Z","dependency_job_id":"229a032d-f4e4-4783-ae31-eb23c546959a","html_url":"https://github.com/aloisdg/awesome-regex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdg%2Fawesome-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdg%2Fawesome-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdg%2Fawesome-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdg%2Fawesome-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloisdg","download_url":"https://codeload.github.com/aloisdg/awesome-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249318969,"owners_count":21250444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome","awesome-list"],"created_at":"2024-07-31T05:01:31.681Z","updated_at":"2025-04-17T05:31:43.510Z","avatar_url":"https://github.com/aloisdg.png","language":null,"readme":"\u003c!--\n  Title: Awesome Regex\n  Description: A curated list of amazingly awesome regex resources.\n  Author: aloisdg\n  --\u003e\n\n# Awesome Regex\n\n[![Awesome](https://awesome.re/badge.svg)](https://awesome.re)\n[![Main workflow](https://github.com/aloisdg/awesome-regex/workflows/Main%20workflow/badge.svg)](https://github.com/aloisdg/awesome-regex/actions)\n\n## Introduction\n\nA 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.\n\nInspired by [awesome-dotnet](https://github.com/quozd/awesome-dotnet), [awesome-ruby](https://github.com/markets/awesome-ruby), [awesome-awesomeness](https://github.com/bayandin/awesome-awesomeness) and the whole `awesome-*` trend on GitHub. Thank you [Reddit](http://www.reddit.com/r/regex), [Hacker News](https://news.ycombinator.com/item?id=9581225) and [Stack Overflow](http://stackoverflow.com/tags/regex/info) for the help.\n\nSharing, suggestions and contributions are always welcome! Please take a look at the [contribution guidelines and quality standard](https://github.com/aloisdg/awesome-regex/blob/master/CONTRIBUTING.md) first. Thanks to all contributors, you're awesome and wouldn't be possible without you!\n\n## Contents\n\n- [Documentation](#documentation)\n- [Prototyping and Testing](#prototyping-and-testing)\n- [Generators](#generators)\n- [Security](#security)\n- [Learning](#learning)\n- [Libraries](#libraries)\n- [Collections](#collections)\n- [Explanation](#explanation)\n- [Exercises](#exercises)\n- [Articles](#articles)\n- [Books](#books)\n- [Benchmarks](#benchmarks)\n- [Cheat Sheets](#cheat-sheets)\n\n## Documentation\n\n- [Regular Expression Language - Quick Reference](https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx) - MSDN documentation about Regex.\n- [Regular Expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) - MDN chapter about JavaScript regular expressions.\n- [Perl Regular Expression Syntax](http://www.boost.org/doc/libs/1_43_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html) - Boost documentation.\n- [Perl 6](https://docs.perl6.org/language/regexes) - Regexes in Perl 6.\n- [PCRE](http://pcre.org/pcre.txt) - Concatenated PCRE man pages.\n- [ECMAScript 6](http://2ality.com/2015/07/regexp-es6.html) - New Regexes in ECMAScript 6.\n- [regex header in C++](http://www.cplusplus.com/reference/regex/) - `\u003cregex\u003e` in C++\n- [class Pattern in Java](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html) - Java 7 docs.\n- [class Regex in Scala](http://www.scala-lang.org/api/2.12.1/scala/util/matching/Regex.html) - Scala Regex.\n- [Python re module](https://pymotw.com/3/re/) - Regular Expressions Python module tutorial.\n- [Regular Expressions in Perl](http://perl-begin.org/topics/regular-expressions/) - Introduction and Reference Links.\n\n## Prototyping and Testing\n\n- [Debuggex](https://www.debuggex.com/) - Online visual Regex tester.\n- [ExtendsClass](https://extendsclass.com/regex-tester.html) - Online visual Regex tester.\n- [Nodexr](https://www.nodexr.net) - Online node-based Regex editor.\n- [Regexr](http://regexr.com/) - Website for interactive Regex prototyping with syntax highlighting (by @gskinner).\n- [Regex101](https://regex101.com/) - Online Regex tester, debugger with highlighting.\n- [Rubular](http://rubular.com/) - Ruby-based regular expression editor and tester.\n- [Rex V](http://www.rexv.org/) - AJAX Regular EXpression eValuator.\n- [RegViz](http://regviz.org/) - Tool for debugging JavaScript regular expressions in a visual way.\n- [Regulex](https://jex.im/regulex) - JavaScript Regular Expression Visualizer.\n- [PyRegex](http://www.pyregex.com/) - Online Regex tester to check validity of Regex in the Python language Regex subset.\n- [pythex](http://pythex.org/) - Quick way to test your Python regular expressions.\n- [Regexper](http://regexper.com/) - Regex visualizer for JavaScript using railroad diagrams.\n- [HiFi Regex Tester](http://www.gethifi.com/tools/regex) - Live JavaScript Regular Expression Tester.\n- [Regex Hero](http://regexhero.net/tester/) - .NET online Regex tester.\n- [Regex Storm](http://regexstorm.net/tester) - .NET Regex tester with highlighting and detailed results output.\n- [RegEx to Strings](https://www.wimpyprogrammer.com/regex-to-strings/) - JavaScript library and online tool to generate strings that a regular expression would match.\n- [RegexPal](http://www.regexpal.com) - JavaScript + PCRE online tester.\n- [RegexTester](http://www.regextester.com) - Regular Expression Tester with highlighting for Javascript and PCRE.\n- [Free Formatter](http://www.freeformatter.com/regex-tester.html) - Free online Regex tester.\n- [Regex Tester - Golang](https://regex-golang.appspot.com/assets/html/index.html) - A secure regular expression tester. built using Go\n- [PHP Live Regex](https://www.phpliveregex.com) - PHP specific regular expression tester with live evaluation and code generation for all PHP's regex functions.\n\n## Generators\n\n- [Txt2Re](https://www.txt2re.com/index_php3.html) - Generate Regular expressions based on a string\n- [Regex Generator++](http://regex.inginf.units.it) - Automatic Generation of Text Extraction Patterns from Examples\n- [regexgen](https://github.com/devongovett/regexgen) - Generates regular expressions that match a set of strings.\n- [RegexGenerator](https://github.com/MaLeLabTs/RegexGenerator) - A tool for generating regular expressions for text extraction (by @MaLeLabTs)\n- [Gamon's numberic range generator](http://gamon.webfactional.com/regexnumericrangegenerator/) - Regex Numeric Range Generator, when you need to match an integer range.\n- [rgxg](https://rgxg.github.io) - Command line tool to generate Regex\n- [Strings to RegEx](https://www.wimpyprogrammer.com/strings-to-regex/) - JavaScript library and online tool to generate a regular expression that matches strings.\n- [Regex Guide](https://regex.guide/playground) - Plain Text to Regex Generator.\n- [grex](https://github.com/pemistahl/grex) - A command-line tool and library for generating regular expressions from user-provided test cases.\n- [AutoRegex](https://www.autoregex.xyz/home) - English \u003c-\u003e Regex from an AI.\n\n## Security\n\n- [SafeRegex](https://github.com/jkutner/saferegex) - A command-line tool for testing regular expressions for [ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) vulnerabilities.\n\n## Learning\n\n- [Wikipedia][d1] - Entry on regular expressions.\n- [Learn Regex The Hard Way][d2] - In-progress book that quickly teaches you regular expressions.\n- [Regular Expression Matching Can Be Simple And Fast][d3] - Basic concept of how Regex parsing works.\n- [PDF] [A Tao Of Regular Expressions][d4] - What are Regular Expressions.\n- [Regular-Expressions.info][d5] - Informative website for learning regular expressions.\n- [RexEgg][d6] - A regular expressions tutorial that goes deep into advanced features.\n- [Try Regex][d7] - Try Regex is an interactive regular expressions tutorial.\n- [Udemy][d8] - A Basic Introduction To Using Regular Expressions In Programming.\n- [Codecademy][d9] - How to use of regular expression.\n- [Regex golf][d10] - Regex golf with Peter Norvig.\n- [Python Regular Expressions][d11] - A good introduction to Python Regular Expressions from Google.\n- [/Reg(exp){2}lained/: Demystifying Regular Expressions][d12] - Fluent 2012 talk reviewing and visualizing basic and intermediate Regular Expressions.\n- [Regular Expressions - Everything you should know][d13] - PDF Series.\n- [The Java Tutorials][d14]\n- [Regex Syntax Summary][d15]\n- [How Regexes work][d16]\n- [Learn Regular Expressions for Beginners][d17]\n- [Java Regex Tutorial][d18]\n- [Javascript.info - Regular expressions][d19] - Regular expressions section in The Modern JavaScript Tutorial\n- [Useful Regexes][d20]\n- [Teach Yourself Regular Expressions][d21]\n- [Interactive Regex Tutorial][d22] - Learn Regex step by step, from zero to advanced.\n\n[d1]: http://en.wikipedia.org/wiki/Regular_expression\n[d2]: http://regex.learncodethehardway.org/book/\n[d3]: http://swtch.com/~rsc/regexp/regexp1.html\n[d4]: http://linuxreviews.org/beginner/tao_of_regular_expressions/tao_of_regular_expressions.en.print.pdf\n[d5]: http://www.regular-expressions.info/\n[d6]: http://www.rexegg.com/\n[d7]: http://tryregex.com/\n[d8]: https://www.udemy.com/learning-regular-expressions/\n[d9]: http://www.codecademy.com/courses/javascript-intermediate-en-NJ7Lr/0/1\n[d10]: https://www.oreilly.com/learning/regex-golf-with-peter-norvig\n[d11]: https://developers.google.com/edu/python/regular-expressions\n[d12]: https://www.youtube.com/watch?v=EkluES9Rvak\n[d13]: http://neverfear.org/blog/view/Regex_tutorial_for_people_who_should_know_Regex__but_do_not___Part_1\n[d14]: https://docs.oracle.com/javase/tutorial/essential/regex/resources.html\n[d15]: http://www.greenend.org.uk/rjk/2002/06/regexp.html\n[d16]: http://perl.plover.com/Regex/\n[d17]: https://hackernoon.com/javascript-learn-regular-expressions-for-beginners-bb6107015d91\n[d18]: http://www.vogella.com/tutorials/JavaRegularExpressions/article.html\n[d19]: https://javascript.info/regular-expressions\n[d20]: https://atrilsolutions.zendesk.com/hc/en-us/articles/205539861-Useful-regular-expressions\n[d21]: http://rads.stackoverflow.com/amzn/click/0672325667\n[d22]: https://regexlearn.com/\n\n## Libraries\n\n- [Tre](https://laurikari.net/tre/) - Free and portable approximate Regex matching library.\n- [Go-Restructure](https://github.com/alexflint/go-restructure) - Match regular expressions into struct fields in Go (by @alexflint). [js](https://github.com/benjamingr/js-restructure) [C#](https://gist.github.com/benjamingr/4de21494b3e76088e5f7)\n- [js-regex](https://github.com/wyantb/js-regex) - Chainable API for constructing Regexes.\n- [VerbalExpressions](https://github.com/VerbalExpressions) - VerbalExpressions is a cross-language library that helps to construct difficult regular expressions.\n- [Super Expressive](https://github.com/francisrstokes/super-expressive) - Super Expressive is a JavaScript library that allows you to build regular expressions in natural language.\n- [XRegExp](http://xregexp.com) - JavaScript Regex library.\n- [RE2](https://github.com/google/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.\n- [Hyperscan](https://github.com/01org/hyperscan) - High-performance multiple Regex matching library.\n\n## Collections\n\n- [RegexLib](http://regexlib.com/) - Regular Expression Library (5000+ indexed expressions).\n- [Regexhub](https://projects.lukehaas.me/regexhub/) - Useful Regex Patterns.\n- [RGXP.RU](https://rgxp.ru/) - Regular Expression Patterns (+testing)\n\n## Explanation\n\n- [RegexTranslator](https://www.regextranslator.com/) - A web app to decode Regex into plain English. You can edit it and translate back.\n- [Explain.pl](http://rick.measham.id.au/paste/explain.pl) - Explain Regular Expressions.\n\n## Exercises\n\n- [HackerRank Regex Challenges](https://www.hackerrank.com/domains/regex/re-introduction) - Regex challenges with varying levels of difficulty.\n- [Redoku](http://padolsey.github.io/redoku/) - Little Regex Sudoku/Crossword thing (by @padolsey).\n- [Regex Tuesday - Challenges](https://github.com/callumacrae/regex-tuesday) - Challenge list about Regex.\n- [Regex Crossword](http://regexcrossword.com) - A crossword puzzle game using regular expressions.\n- [RegexOne](http://regexone.com) - Learn regular expressions with simple, interactive examples.\n- [Regex Exercises](https://regex.sketchengine.co.uk/) - Regexp exercises.\n- [Regular Expression Crossword Puzzle](http://gregable.com/2015/12/regular-expression-crossword-puzzle.html) - A crossword puzzle with a neat web interface.\n\n## Articles\n\n- [5 Techniques to Improve Regex Performance](https://www.loggly.com/blog/five-invaluable-techniques-to-improve-regex-performance/) - Craft your own powerful, yet efficient regex.\n- [The Bad, the Better, and the Best](https://www.loggly.com/blog/regexes-the-bad-better-best/) - How a few characters can make a difference in performance.\n- [The Greatest Regex Trick Ever](http://www.rexegg.com/regex-best-trick.html) - So you're doubtful at the mention of a \"best Regex trick\"?\n- [Treat regular expressions as code, not magic](http://alexwlchan.net/2016/04/regexes-are-code/) - If you don’t write them carefully, you can end up with an unmaintainable monstrosity.\n- [Demystifying The Regular Expression That Checks If A Number Is Prime](https://iluxonchik.github.io/regular-expression-check-if-number-is-prime/) - How a regular expression can check if a number is prime.\n- [Regex Tree: a regular expressions processor](https://medium.com/@DmitrySoshnikov/regexp-tree-a-regular-expressions-parser-with-a-simple-ast-format-bcd4d5580df6)\n- [The thirty minute regex tutorial](https://www.codeproject.com/Articles/9099/The-Minute-Regex-Tutorial) - Regular Expressions in 30 Minutes.\n- [Regular Expression Matching Can Be Simple And Fast](https://swtch.com/~rsc/regexp/regexp1.html)\n- [Regular Expressions in a post ES6 World](https://ponyfoo.com/articles/regular-expressions-post-es6)\n- [Regular expression (regex) performance: The fundamental guide](https://medium.com/@lennartkoopmann/regular-expression-regex-performance-the-fundamental-guide-3d39e6af33af)\n- [The New ‘Absent Operator’ in Ruby’s Regular Expressions](https://medium.com/rubyinside/the-new-absent-operator-in-ruby-s-regular-expressions-7c3ef6cd0b99)\n- [Optimizing regexes in Java](http://www.javaworld.com/article/2077757/core-java/optimizing-regular-expressions-in-java.html)\n- [Use Regex to Test Password Strength in JavaScript](https://dzone.com/articles/use-regex-test-password)\n- [Java 101](http://www.javaworld.com/article/3188545/learn-java/java-101-regular-expressions-in-java-part-1.html) - Regular Expressions in Java.\n- [Most Crazy Regexes](https://stackoverflow.com/questions/800813/what-is-the-most-difficult-challenging-regular-expression-you-have-ever-written) - Stack Overflow\n- [Regex Humor](http://www.rexegg.com/regex-humor.html) - Regex jokes and cartoons.\n- [The true power of regular expressions](https://nikic.github.io/2012/06/15/The-true-power-of-regular-expressions.html)\n- [On code, early neural networks, and once discredited AI pioneers](https://whyisthisinteresting.substack.com/p/the-regular-expression-edition) - A short history of regexes\n\n## Books\n\n- [Patterns, Automata, and Regular Expressions](http://infolab.stanford.edu/~ullman/focs/ch10.pdf) - Al Aho and Jeff Ullman (1992) (*chapter 10 of [Foundations of Computer Science](http://infolab.stanford.edu/~ullman/focs.html)*)\n- [Beginning Regular Expressions](http://shop.oreilly.com/product/9780764574894.do) - Andrew Watt (2005)\n- [Mastering Regular Expressions](http://shop.oreilly.com/product/9780596528126.do) - Jeffrey E.F. Friedl (2006)\n- [Regular Expression Pocket Reference](http://shop.oreilly.com/product/9780596514273.do) - Tony Stubblebine (2007)\n- [Introducing Regular Expressions](http://shop.oreilly.com/product/0636920012337.do) - Michael Fitzgerald (2012)\n- [Regular Expressions Cookbook](http://shop.oreilly.com/product/0636920023630.do) - Jan Goyvaerts \u0026 Steven Levithan (2012)\n- [Mastering Python Regular Expressions](http://shop.oreilly.com/product/9781783283156.do) - Felix Lopez \u0026 Victor Romero (2014)\n- [JavaScript Regular Expressions](http://shop.oreilly.com/product/9781783282258.do) - Loiane Groner \u0026 Gabriel Manricks (2015)\n- [Regex - the complete tutorial](https://www.princeton.edu/~mlovett/reference/Regular-Expressions.pdf)\n- [Python re(gex)?](https://github.com/learnbyexample/py_regular_expressions) - Sundeep Agarwal (2020)\n\n## Benchmarks\n\n- [Benchmark of Regex Libraries](http://lh3lh3.users.sourceforge.net/reb.shtml)\n- [Java regular expression library benchmarks – 2015](https://www.javaadvent.com/2015/12/java-regular-expression-library-benchmarks-2015.html)\n- [Languages Regex Benchmark](https://github.com/mariomka/regex-benchmark) - It's just a simple Regex benchmark of different programming languages.\n- [Performance comparison of regular expression engines](http://sljit.sourceforge.net/regex_perf.html)\n- [Regex Performance](https://github.com/rust-leipzig/regex-performance) - Performance comparison of regular expression engines.\n\n## Cheat Sheets\n\n- [Regular Expressions Cheat Sheet](https://www.cheatography.com/davechild/cheat-sheets/regular-expressions/)\n- [Regex Cheat Sheet](http://www.rexegg.com/regex-quickstart.html)\n- [MIT Cheat Sheet](http://web.mit.edu/hackl/www/lab/turkshop/slides/regex-cheatsheet.pdf)\n- [Java Cheat Sheet](https://zeroturnaround.com/rebellabs/java-regular-expressions-cheat-sheet/)\n- [JavaScript Cheat Sheet](https://www.debuggex.com/cheatsheet/regex/javascript)\n- [RegexLearn Cheat Sheet](https://regexlearn.com/cheatsheet)\n\n# Other awesome lists\n\nOther amazingly awesome lists can be found at the [official awesome list](https://github.com/sindresorhus/awesome) and [here](https://github.com/jnv/lists).\n","funding_links":[],"categories":["Others","Uncategorized","Reference","Technical","miscellaneous","Programming","Miscellaneous","⚡ Productivity","Other Lists","Bachelor-Level","Reference materials"],"sub_categories":["Uncategorized","Regular Expressions","awesome-*","Resources","TeX Lists","Bachelor Informatik/KI","Lists"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdg%2Fawesome-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloisdg%2Fawesome-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdg%2Fawesome-regex/lists"}