[Israel.pm] regex substitue with lookup table

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Sat Mar 27 23:17:34 PST 2004


Sorry,
It should be:
s/someText (.+?) someMoreText/someText $newStr someMoreText/;

I tried to replace  a string( $1)  with a $newtr. The new string is in
computed according to another string($2) found in the same regex.

Yossi



                                                                                                                                   
                      "Offer Kaye"                                                                                                 
                      <oferk at oren.co.i         To:      "Perl in Israel" <perl at perl.org.il>                                        
                      l>                       cc:                                                                                 
                      Sent by:                 Subject: RE: [Israel.pm] regex substitue with lookup table                          
                      perl-bounces at per                                                                                             
                      l.org.il                                                                                                     
                                                                                                                                   
                                                                                                                                   
                      03/28/2004 09:06                                                                                             
                      Please respond                                                                                               
                      to Perl in                                                                                                   
                      Israel                                                                                                       
                                                                                                                                   
                                                                                                                                   



>             s/someText $newStr someMoreText/;

What were you trying to do here?

----------------------------------
Offer Kaye
_______________________________________________
Perl mailing list
Perl at perl.org.il
http://www.perl.org.il/mailman/listinfo/perl







More information about the Perl mailing list