if($str2=~ m/^(abc|xyz)\w{6}|^\w{3}(abc|xyz)\w{3}|^\w{6}(abc|xyz)$/){ print "true "; }else{ print "false"; }
In reply to Re: cool regular expression needed for matching in columns
by siva kumar
in thread cool regular expression needed for matching in columns
by Ben Win Lue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |