[Israel.pm] regex questions

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Mon Jul 19 07:34:24 PDT 2004





Thanks guys.

Yossi



                                                                                                                                   
                      Offer Kaye                                                                                                   
                      <offer.kaye at gmai         To:      Perl in Israel <perl at perl.org.il>                                          
                      l.com>                   cc:                                                                                 
                      Sent by:                 Subject: Re: [Israel.pm] regex questions                                            
                      perl-bounces at per                                                                                             
                      l.org.il                                                                                                     
                                                                                                                                   
                                                                                                                                   
                      07/19/2004 16:38                                                                                             
                      Please respond                                                                                               
                      to Perl in                                                                                                   
                      Israel                                                                                                       
                                                                                                                                   
                                                                                                                                   



On Mon, 19 Jul 2004 16:23:26 +0300, yossi.itzkovich wrote:
> Hi,
>
[...snip...]
>
> (The best we came with was :  /\[DB((.*?)Nav|(.*?))\]/ ,  but then if we
> have "Nav", then we have ti use $2 else we have to use $1   Ichs...)
>
> Yossi
>

m/\[DB(.+?)(?:Nav)*\]/

Now only $1 will exist.

Hope this helps,
--
Offer Kaye
_______________________________________________
Perl mailing list
Perl at perl.org.il
http://perl.org.il/mailman/listinfo/perl






More information about the Perl mailing list