Reputation: 607
I have tried regular expression that considers only statements that have zero or more occurances of "%" and "&" and returns false if "@" or "$" is present. :
^((%&)*(?!@).)*$
What I need is a regular expression that validates only those strings that must have 2 or more special characters from the set (%&) and return false if any other special character is present.
Upvotes: 2
Views: 65