To view parent comment, click here.
To read all comments associated with this story, please click here.
No. They have enough misinformation to have you confuse pattern replacement patterns with regular expersions.
I've seen discussions of regular expressions in fewer words that did a better job and didn't cause people to confuse them with the '*' and '?' glob patterns.
Nor do these discussions give you enough to get started, as they don't even cover all of the syntax in the example they gave.
Writing an example that you don't even explain is lousy exposition. period.
http://www.regular-expressions.info/tutorial.html which is the first hit in google for regular expression tutorial is far better and doesn't try to confuse people by comparing regexps to something they're not.
Probably none of you need introductory material to regular expressions, but if you know anyone who does, RegexBuddy, whose tutorial is Cloudy's cited link, is a great (non-free) package if you are learning the things. Or there is the material in Robbins books on Awk which have very nice compact explanations. Though I found the Aho book on Awk much better to learn Awk itself from.





Member since:
2005-06-28
I don't know if you expected a whole book of discussion about regular expressions, but these two links (which are actually parts of book chapters) have enough info to get you started.