Perfect, thanks.  I think I saw that earlier ...stupid brain :)

-----------------------------------------
Craig Moynes
Internship Student
netCC Development
IBM Global Services, Canada
Tel: (905) 316-3486
[EMAIL PROTECTED]



                                                                                       
                               
                    "Brett W. McCoy"                                                   
                               
                    <bmccoy@chapelper       To:     Craig Moynes/Markham/IBM@IBMCA     
                               
                    ilous.net>              cc:     <[EMAIL PROTECTED]>               
                               
                                            Subject:     Re: Regexp: Grouping and 
replacing with an unknown number of 
                    05/08/01 04:09 PM        groups                                    
                               
                                                                                       
                               
                                                                                       
                               
                                                                                       
                               



On Tue, 8 May 2001, Craig Moynes/Markham/IBM wrote:

> $values =~ s/.*$self->{DF_REGEXP}.*/$replaceString/g;

Perhaps you actually want:

@values_arr = $values =~ /.*$self->{DF_REGEXP}.*/

This will give you an array of the atomized matches in your regexp, and
you don't need to fool around with those backreferences.  If you're not
really doing anything with those backreferences, you are just making busy
work for yourself trying to format that output.

-- Brett

http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I came, I saw, I deleted all your files.






Reply via email to