RE: Reg exp into variable

2001-09-06 Thread Jeff 'japhy/Marillion' Pinyan
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

RE: Reg exp into variable

2001-09-06 Thread Paul Jasa
. Thanks again!! Paul -Original Message- From: Jeff 'japhy/Marillion' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 3:32 PM To: Paul Jasa Cc: [EMAIL PROTECTED] Subject: Re: Reg exp into variable Importance: High On Sep 6, Paul Jasa said: >How do I put s

Re: Reg exp into variable

2001-09-06 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 6, Paul Jasa said: >How do I put something I am looking for, and find, with a reg expression >INTO a variable? You want to capture the specific part of the regex with ( and ), and then set that equal to a variable. There are two ways of doing that: if (/(pattern)/) { $x = $1; # $