in reply to Re: regexp =~
in thread treating * as a normal character in a regex

Escape the star eg. "THIS TEXT HAS A \* IN IT";

Note, that will not fix the problem. Try it and see. You need to use single quotes and a backslash, double quotes and two backslashes, or better, \Q and \E as suggested by others.