Regular Expressions Resources
Lately, I have been working a lot with regular expressions and today I want to expand on my Best Programming Cheat Sheets post and Grep, Awk, and Sed post and list some great resources on finding useful Regex patterns and examples. If you are just starting out in Regex land, I would highly recommend reading through Smashing Magazine’s Guide to Regular Expressions and practice some patters with RegexPal or JS Regex Tester. These tools are really useful in testing and validating different patterns so keep them in mind as you browse through the Regex resources below:
- HTML5pattern – source of regularly used Regex patterns for HTML5 forms
- Grok Patterns – from logstash’s Grok filter
- Regexes – known regular expressions from is.js
- 37 Tested Regular Expressions – for PHP, Perl, and JavaScript
- 8 Regular Expressions you should know – useful Regex patterns from NetTuts
- 15 PHP regular expressions for web developers – 15 Regex patterns from catswhocode
- 10 Java Regular Expression Examples You Should Know – another list of good regex examples
- Big Collection of Regular Expressions – Nice regex patterns from resourcesmix
- Handy Regular Expressions – part of the famous Perl one-liners posts by Peteris Krumins
- Regex Pattern Collection – another collection of some good regular expressions
- Common RegExp selectors – great collection that can be used with jQuery.match() function
- Regular Expression Library – a searchable database of regular expressions.
- Syntax of regular expressions in JavaScript and a core collection – includes a list of commonly used regular expressions
- Common Regular Expressions – some good regex examples.
- RegexPer – Regular Expression Visualization
More:
JavaScript Regular Expression Enlightenment
Learn regular expressions with interactive examples
Collection of Regular Expressions
WikiPedia List of Regular Expressions
PHP and Regex
Regular Expressions in Python
JavaScript Guide to Regular Expressions
Regular Expressions in Perl
Advanced Regular Expressions
30 Useful Tools for Regular Expressions
Example Driven Guide to Regex
Regular Expressions in SQL
Simple RegEx GUI