This will find the first occurence of your string.use strict; my $string="this_PM123456789_code_is_untested"; $string=~/([a-zA-Z]{2}\d{9})/; print $1;
CU
Robartes-
In reply to Re: Re: Re: Newbie reg.exp question!
by robartes
in thread Newbie reg.exp question!
by RuneK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |