in reply to •Re: RegEx, $1, problem
in thread RegEx, $1, problem

Isn't that the same as as the OP? You negated the if to unless AND the =~ to !~ for a net change of nothing.