in reply to dont consider if (......)

Have you looked at perlre? It documents how you can match more than one character in a place when using regular expressions.

Replies are listed 'Best First'.
Re: dont consider if (......)
by ungalnanban (Pilgrim) on Mar 01, 2010 at 08:27 UTC
    Is this you are expecting?
    Example.
    my $data=<STDIN>; if($data =~ /ipw\.r[^a-p][a-z]*/) { print "Match\n"; } else { print "Not Match\n"; }
    OutPut
    ipw.raasdfdsf Not Match ipw.raasdfdsf Not Match ipw.rgdfgsdfsd Not Match ipw.rrwgorga Match
    A reply falls below the community's threshold of quality. You may see it by logging in.