Hi Monks,
I want to match the first occurance of a pattern in a string.
For example:
my
$string="/ae/gowtham_langTests/hpgl2/hpgl2/linepath/masters/top2bottom/top2bottom9/top2bott
om9.plt1.tiff ";
my $pattern = "/hpgl2/";
I want to match the first occurance of "$pattern" in the string "$string".
Can any one help me on this?
Thanks in advance....
Regards,
Anand.