I am trying to write a String validation to match any character (regular, digit and special) except =.
Here is what I have written -
String patt
If you only want to check for occurence of "=" why don't you use the String indexOf() method?
if str.indexOf('=') //...