Try adding some boundary matchers in there...word boundaries, or as the below shows, beginning and ending of the line



^[\\Q><!\\E]?\\=?$


Note the regex will also match an empty String...