Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pattern mattching

by sh1tn (Priest)
on May 30, 2005 at 07:22 UTC ( [id://461675] : note . print w/replies, xml ) Need Help??


in reply to Pattern mattching

Or positive lookahead:
my $pattern = qr{\+(?=\d{6})}; $string =~ /$pattern/;