On Mon, Jan 22, 2007 at 04:04:49PM +1300, Don Gould wrote: > Do it again... > with lots of examples.
I did cover it ages ago, but it's the sort of thing that could be done over again happily. Reminded by the discussion that I never uploaded my notes; so I've put them in to http://clug.net.nz/index.php/RegularExpressions now. Currently the page is a set of short "exceptions" notes, rather than a complete explanation, but the slideshow is a PDF attached to the bottom. If someone wants to go through regexps again, I'd recommend some concrete examples - I can get a lot of mileage out of email logs, or perhaps syslogs (email is great because it usually covers multiple lines, and that's a challenge - but bad because it may involve exposing data that is normally private) Or, for really shaking out the corners of regexps, the 'expect' program is great - especially because the data input is not chunked the way you normally want it to be ... -jim
