in reply to Re: Matching condition for two files
in thread Matching condition for two files

why no + after \w
if($_ =~ /M8BBABONP\w+M\d+/){

Replies are listed 'Best First'.
Re^3: Matching condition for two files
by Nikhil Jain (Monk) on May 02, 2011 at 07:43 UTC

    because + used for one or more matching and in this situation we know that only one letter is changing after that letter "M" will come. so for one letter \w is enough.

      ok.thanks