RE: RegEx matching multiple items.

2002-04-11 Thread Amerson, Kevin
Nope that was it, I just knew that we didn't have to loop through the array to build the string :) Thanks! -Original Message- From: bob ackerman [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: Re: RegEx matching multiple items.

Re: RegEx matching multiple items.

2002-04-11 Thread bob ackerman
you have something else in mind? > > -Original Message- > From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 12:48 PM > To: Kingsbury, Michael > Cc: '[EMAIL PROTECTED]' > Subject: Re: RegEx matching multiple items. &g

RE: RegEx matching multiple items.

2002-04-11 Thread Amerson, Kevin
Hello, How would you put the matches into a comma separated list? -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 12:48 PM To: Kingsbury, Michael Cc: '[EMAIL PROTECTED]' Subject: Re: RegEx matching multipl

Re: RegEx matching multiple items.

2002-04-11 Thread Jeff 'japhy' Pinyan
On Apr 11, Kingsbury, Michael said: > > > -> "SPRID12345678" >"SPRID23456789" > > >I want to match the SPRID strings. @data = $string =~ /SPRID\d+/g; Or, if you only want the numbers: @data = $string =~ /SPRID(\d+)/g; This is assume $string is the ENTIRE data. Otherwis

RegEx matching multiple items.

2002-04-11 Thread Kingsbury, Michael
Given text such as : - -> "SPRID12345678" "SPRID23456789" - I want to match the SPRID strings. I was trying to get them to be in $1 $2 etc, as there's almost always 1, sometimes more, sometimes none, but almost never more than 3-4. How would I match them. To t