Regular Expression (RegEx) Resources
#1  Alexander Turcic 03-10-2004, 06:03 PM
Steve Mansour has compiled a nice reference for Perl Regular Expressions.

If you find other good reference sources, post them here.

#2  Alexander Turcic 03-10-2004, 06:28 PM
Another good RegEx resource is the book O'Reilly's Mastering Regular Expressions ( and

#3  ignatz 03-11-2004, 11:05 PM
The following comes straight out of the Sitescooper docs and has several more good Perl resources in addition to the Tao one:
For more information on regular expressions in general, and the Perl variety that sitescooper uses, I recommend checking out some of these pages. First of all, Steve Litt at has put together a great guide here: Steve Litt's PERLs of Wisdom: PERL Regular Expressions. Highly recommended. Next up, there's A Tao Of Regular Expressions, it's quite good. Also, weblogger Jorn Barger has written up a good page of to regexps at Regular Expressions Resources on the Web. The "Perl" section is most relevant to sitescooper's regexp format. The guide to Perl has a great tutorial on them too.

#4  Alexander Turcic 04-01-2004, 04:29 PM
Another great RegEx resource, especially for beginners:

#5  Alexander Turcic 04-03-2004, 04:27 AM
A great tool to learn RegEx is The RegEx Coach.

The Regex Coach is a graphical application for Linux and Windows which can be used to experiment with (Perl-compatible) regular expressions interactively. It has the following features:

- It shows whether a regular expression matches a particular target string.
- It can also show which parts of the target string correspond to captured register groups or to arbitrary parts of the regular expression.
- It can "walk" through the target string one match at a time.
- It can simulate Perl's split and s/// (substitution) operators.
- It tries to describe the regular expression in plain English.
- It can show a graphical representation of the regular expression's parse tree.
- It can single-step through the matching process as performed by the regex engine.
- Everything happens in "real time", i.e. as soon as you make a change somewhere in the application all other parts are instantly updated.

Best of all, it's free!!

#6  Alexander Turcic 04-03-2004, 04:35 AM
Another great resource is the Regular Expression Library, which has hundreds of patterns figured out for you already. Good use if you don't want to reinvent the wheel

#7  Alexander Turcic 06-01-2004, 05:18 PM
Learning Perl the Hard Way is a free ebook available as Adobe PDF. Chapter 2 focuses on Regular Expression. Good read!

Today's Posts | Search this Thread | Login | Register