in reply to Re: Re: Newbie reg.exp question!
in thread Newbie reg.exp question!

In that case, you would use a slightly modified version of the regexp:
use strict; my $string="this_PM123456789_code_is_untested"; $string=~/([a-zA-Z]{2}\d{9})/; print $1;
This will find the first occurence of your string.

CU
Robartes-