Here's one thought. I know you had in mind one regex, but it works
pretty well like this:
#################################
my @testNumbers = qw(1453225556
994320100
99887443
1123234499
99298281);
foreach(@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 possible with RegEx
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
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>