At 20:02 Uhr -0700 25.09.2002, Bill Becker wrote: >This is just so profound, I'm going to file it away in my >"MacPerl-Keep" folder. (~: > >--- Bart Lateur <[EMAIL PROTECTED]> wrote: >>Start with the dot. Add "+", "*" and "?", and finally, add "(...)" for >>capturing, plus the notion to escape all non-word characters with a >>backslash in ordere to "disarm" them, and you're on your way. Next add > >char classes, "[...]", and there you have all the basics.
Yes, but in a way that's quite correct... ;-) My two cents: I learnt using regex with help of NisusWriter and BBedit. Although there are minor syntax differences between Perl's regex and the regex used in the two text editors, you can learn a lot with them just from the fact that the drill turnover is about a hundred times higher than using mere Perl. So go to http://www.nisus.com/free/Login_nw.php and get yourself a free copy of NisusWriter 4.1.6, open any text file (perferably one whose contents you are very well acquainted with) open the find dialog and fire away, with help of the online manual. The best thing in NW is that as a beginner (or for certain purposes) you can use a visual symbolic version of regex called Power Find which gives you an easy to grasp rendition of regex patterns which you can translate to real cryptic regex patterns Power Find Pro at any time. This should give you about 70% of the basic knowledge, the rest of the perl specific issues is then a matter of a few hours. Give it a try, even if the perl pros may be laughing at you... ;-) Experience is by far the best tutor. -- ___ Peter Hartmann ________ mailto:[EMAIL PROTECTED]