I am looking for a rather specific regular expression, and I have almost none, but not quite.
I want a regular expression that requires at least 5 characters, where at least one of these characters is either a numeric value or a non-character character.
This is what I still have:
^(?=.*[\d]|[!@
So the problem is in the "or" part. This will allow non-alphanumeric values ββto be used, but at least one numerical value is still required. You can see that I have a statement or a "|" between my required numbers and non-alphanumeric, but that doesn't seem to work.
Any suggestions would be great.
regex
Chris nicol
source share