On Sep 6, Paul Jasa said:
>/((?:\d{1,3}\.){3}\d{1,3})/
>
>what is this part: (?:\d{1,3}\.)
>and this: {3}\d{1,3}
Ok. (?: ... ) groups part of the regex. It just binds it together as one
big clump.
The {3} is a quantifier, like {1,3}. {1,3} means "1, 2, or 3 times". {3}
means "exactly 3 times".
So (?:\d{1,3}\.){3} matches the same way that \d{1,3}\.\d{1,3}\.\d{1,3}\.
does, only it's shorter and easier to read.
>I am lost.... jst want to understand, or if youwant to refer me to a page
>on the Camel book I can look it up myself. Thanks again!!
Look for the chapter on regexes (in Camel III) or else look at the
'perlretut' documentation on http://www.perldoc.com/.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]