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.
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
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
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
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