On Friday, May 10, 2002, at 12:41 , Tanton Gibbs wrote:
> Oh yeah makes perfect sense now...match nothing or nothing and sense
> everything has nothing it always matches. haha...I like that.
>
> Tanton
I guess the two HORRORS I would like to stomp on are
a) using "|" as a delimiter
b) forgetting to ascribe "/\|/" in anything like a RegEx
a la /|/ in any of it's manifestations....
I know that
my $bar ='\|';
/^\s*(\w+)\s*$bar\s*(\w+)\s*$bar\s*(\w+)\s*$bar\s*(\w+)\s*$bar\s*(\w+)\s*$bar\
s*(.+)/;
ain't any more "readable" - than say
/^\s*(\w+)\s*\|\s*(\w+)\s*\|\s*(\w+)\s*\|\s*(\w+)\s*\|\s*(\w+)\s*\|\s*(.+)
/;
but Hey Kids what about:
my $find_it = (qr/\s*(\w+)\s*\|/o x 5); # we want the five things...
/^$find_it # get our five fields
\s*(.+)\* # the six field is a wild card of stuff not numeric
/xo;
or am I missing something????
ciao
drieux
---
ps: some day I have to take the time to actually
read "Mastering Regular Expressions" - who knows,
it may have some useful stuff in it....
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]