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

Your if will only work if !~ is changed to =~.