SPUG:m,n -- why?
Michael R. Wolf
MichaelRunningWolf at att.net
Sat Mar 15 01:24:15 CST 2003
Does anyone know the historical roots of "n" and "m" for "min" and
"max" in the regex quantifiers? I can never get a mnemonic for which
is which. (Of course, the min is to the left of the max.) Perhaps if
I know it's roots, I'll remember.
That is (n,m) = (0,7) in this snippet:
if ($fruit =~ /b(an){0,7}a/) {
print "You've got an modular banana\n";
}
--
Michael R. Wolf
All mammals learn by playing!
MichaelRunningWolf at att.net
More information about the spug-list
mailing list