Re: Is it possible with RegEx

2005-11-09 Thread Jeff 'japhy' Pinyan
On Nov 10, Gilles said: I try do to a < simple > thing : Knowing If a string like "13" exist in a string like "123" Or if "37" exist in "12356789" You're not looking for '13', you're looking for '1..3'. The simplest way to do this is: if ("123" =~ /1.*3/) { print "found 1...3\n

RE: Is it possible with RegEx

2005-11-09 Thread Gilles
No, I would know if "13" (means the 2 characters) are in "123" or "145637" I'm sorry if I did not the problem clear Gilles -Message d'origine- De : Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 novembre 2005 02:4

RE: Is it possible with RegEx

2005-11-09 Thread Timothy Johnson
reach(@testNumbers){ if($_ =~ /1/ and $_ =~ /3/){ print "$_ has a 1 and a 3\n"; } } # -Original Message- From: Gilles [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 5:50 PM To: 'beginners perl' Subject: RE: Is it p

Re: Is it possible with RegEx

2005-11-10 Thread Shawn Corey
Gilles wrote: Hi, I try do to a < simple > thing : Knowing If a string like "13" exist in a string like "123" Or if "37" exist in "12356789" I tried many solutions, but never found one good so I try to do it with loops which more difficult but not impossible I'd like to know if with RegExp

Re: Is it possible with RegEx

2005-11-10 Thread Bob Showalter
Gilles wrote: Hi, I try do to a < simple > thing : Knowing If a string like "13" exist in a string like "123" Or if "37" exist in "12356789" I tried many solutions, but never found one good so I try to do it with loops which more difficult but not impossible I'd like to know if with RegExp