tags:

views:

99

answers:

5

Possible Duplicate:
Learning Regular Expressions

I'm good at learning new languages and platforms, though whenever I try to learn Reg Ex I cannot make sense of it. I once even used the Regular Expression Designer to try and put some together.

What's a good starting point to understanding what looks like the only rocket-science programming language in the world?

Links to articles, books or anything else that could help me get my grounding would be appreciated.

+2  A: 

For me, this site was very useful:

jopa
+8  A: 

http://www.regular-expressions.info/

A great reading resource, well written and explained. They cover basic theory and differences between a number of regex flavours. I refer to this site quite often.

Other resources? I prefer Expresso as my regex designer of choic. I find it very quick and easy to create and test expressions of any size or complexity. On the downside, it's .NET-centric so some of the expressions you build won't work in other environments.

FrustratedWithFormsDesigner
If you're looking for a tool to help build expressions and don't mind paying, you can't beat [RegexBuddy](http://www.regexbuddy.com/), either.
Toby
+1, but I much prefer [The Regex Coach](http://www.weitz.de/regex-coach/) to Expresso or RegexBuddy.
Seth
@Seth: I've tried Regex Coach, but found it a bit awkward and clunky. To each is own, I guess. :)
FrustratedWithFormsDesigner
+1  A: 

i suggest you to buy this book, Mastering Regular Expressions by Jeffrey E.F. Friedl

Srinivas Reddy Thatiparthy
+1 for suggesting this book
pcent
+2  A: 

O'Reilly's Mastering Regular Expressions is a great book on this topic.

jamesaharvey
+1  A: 

There are several interactive sites that are helpful:

Using Rick Measham's site to explain regex's is very helpful.

Looking at existing solutions at RegExLib is helpful.

drewk