I have been tasked with checking for certain patterns in an email subject and not allowing a user to send the email based on those patterns. Problem is... I have to use an existing regex. The existing regex uses matching patterns to allow the user to send. In my case, I want to check for a pattern to not allow. I have googled, and attempted a million different ways of doing this. Can't get it all to work.
So here is what I have to check for: FW: FWD: RE: FW: RE; FW- RE- FW, RE,
So here is the exisiting pattern that I need to search for ANYWHERE not just beginning:
^[\w\d\s\+\-\/\\~!@#$%&*()_.,'?\u2600\u2715\u2716\u2713\u2714\u2606\u260E\u00A9\u00A3\u2612\u2614\u2615\u2618\u2619\u261A\u261B\u261C\u261D\u261E\u261F\u00AE\u00A2\u00BC\u00BD\u00BE\u2122\u263D\u263E\u2668\u2672\u2661\u2662\u2663\u2664\u2665\u2666\u2669\u266A\u266B\u266C\u2672\u267B\u267E\u267F\u2692\u2693\u2694\u2698\u269C\u26A0]+$