If you change .* to .*? you should be in business.
Oh dear, looks like I removed that part from the original code posted by
Robo when testing. My regexp-nuby status is showing. Guess a good RE
book should be on my wishlist for my birthday then.
···
–
([ Kent Dahl ]/)_ ~[ http://www.stud.ntnu.no/~kentda/ ]/~
))_student/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_/ö____/ (_engineering.discipline=Computer::Technology)
Beware that regexp syntax and features vary from language to language, so
don’t expect the more esoteric examples to work in Ruby without some
modification.
You might want to try reading the documentation for “PCRE”, the
Perl-Compatible Regular Expressions library by Philip Hazel, author of
Exim. He writes excellent documents! Find it on freshmeat.net.
Regards,
Brian.
···
On Sun, May 11, 2003 at 04:11:35PM +0900, Kent Dahl wrote:
Oh dear, looks like I removed that part from the original code posted by
Robo when testing. My regexp-nuby status is showing. Guess a good RE
book should be on my wishlist for my birthday then.
On Sun, May 11, 2003 at 04:11:35PM +0900, Kent Dahl wrote:
Oh dear, looks like I removed that part from the original code posted by
Robo when testing. My regexp-nuby status is showing. Guess a good RE
book should be on my wishlist for my birthday then.
Beware that regexp syntax and features vary from language to language, so
don’t expect the more esoteric examples to work in Ruby without some
modification.
I’d recommend “Mastering Regular Expressions” by Jeff Friedl for the
wishlist; it takes those variations into account, and the 2nd edition
includes Ruby.