You need to group the alternations with parentheses and hack off one of the duplicate bars in the middle of the RE. Here is what you are looking for:m/^administrator|accounts|support|postmaster|webmaster|spam-admin| |technical|billing|sales|misuse|mail|virus-admin|manager|usenet|ho +stmaster$/
m/^(administrator|accounts|support|postmaster|webmaster|spam-admin|tec +hnical|billing|sales|misuse|mail|virus-admin|manager|usenet|hostmaste +r)$/
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
In reply to Re: Code review: validation regexes
by nysus
in thread Code review: validation regexes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |