[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

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.


                      "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                                                                                             
                      03/28/2004 09:06                                                                                             
                      Please respond                                                                                               
                      to Perl in                                                                                                   

>             s/someText $newStr someMoreText/;

What were you trying to do here?

Offer Kaye
Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list