Number one will match:
\d+\x3a1108
or
\w+\x3a1108 at least once
Number two will match:
(\d+\x3a1108|\w+\x3a1108) at least once
so yes the {1,} outside means the whole thing and {1,} inside means only the
part after the or (pipe '|' sign) unless my regex skills are completely
deserting me after a whole day of work...
Regards,
Rob
On 1/31/07, oryann9 <[EMAIL PROTECTED]> wrote:
In this regexp
my $regexp = qr/(\d+\x3a1108
|\w+\x3a1108{1,} ) /;
vs.
my $regexp1 = qr/(\d+\x3a1108
|\w+\x3a1108){1,} /;
does the {1,} construct outside the parens () mean the entire string 1 or
more times and within the parens mean only the last string \x3s1180 1 or
more times?
What is the diff?
thank you.
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.