I'm trying to frame a regular expression where I have to search for the non-word characters except - and =. Currently I have put all the meta chars and non-word chars other than - &= for my search. But I think there should be alternate and easy way to get it.

For .eg., I have to search for string like abc%de_f (this regex matching this should work for any patterns with non-word chars except - and =)