Newbie with RegEx question
MarkyMoon
markmoon at teleport.com
Sat Jun 2 16:47:38 CDT 2001
> >>>>> "MarkyMoon" == MarkyMoon <markmoon at teleport.com> wrote without thinking it through:(
> MarkyMoon> of a problem understanding why
>
> MarkyMoon> (abc)*
>
> MarkyMoon> will match a null set "" (in addition to abc,abcabc, abcabcabc
But "Randal L. Schwartz" answered anyway:
>
> By definition. zero or more times. zero is one of that. :)
>
I'm sorry.
I kind of got it into my head that * matched _any_ occurrence of ...
not _zero or more_ occurrences. I'm embarrassed and promise to
double check myself from now on. Or at least my books.
>"Randal L. Schwartz"
> So be
> careful when you start disallowing null string matches. :)
I promise!
Thanks,
Mark
--
My very first japh's!
(Sure... they're not fancy, but I'm a graphic designer dang-it!)
--
@a = ("a".."z"," ","-","\n");foreach $b (
12,0,17,10,24,12,14,14,13,26,8,18,26,0,26,
22,0,13,13,0,27,1,4,26,15,4,17,11,26,7,0,
2,10,4,17) {print "$a[$b]"};print $a[28];
--numero dos --
@a = ("a".."z"," ",",","\n","!");foreach $b (
28,0,26,14,13,4,26,11,26,17,0,13,3,0,11,26,22,17,14,19,4,26,19,7,4,26,1,14,14,10,27,28,
0,26,19,22,14,26,11,26,11,11,0,12,0,26,5,14,17,26,19,7,4,26,11,14,14,10,27,28,
1,20,19,26,19,14,26,22,7,14,12,26,22,4,26,14,22,4,26,8,19,26,0,11,11,27,28,
8,18,26,19,7,4,26,19,7,17,4,4,26,11,26,11,0,17,17,24,26,22,0,11,11,29,28,28,
17,0,13,3,0,11,28) {print "$a[$b]"};print $a[28];
TIMTOWTDI
More information about the Pdx-pm-list
mailing list