R
Ryan Taylor
Hello.
I am trying to create a regular expression that will let me know if a string
has the following criteria. Order does not matter in the string, but when
building a regular expression it does, right? I am brand new to regular
expressions and having a little (read: a lot of) difficulty in making a
regular expression that makes sure the string meets the following rules.
The string contains at least one character from two of the following four
sets.
- an uppercase alpha character
- a lowercase alpha character
- a digit
- a punctuation mark (IE: , . ; ' " ! ?)
The problem that I am having is that order matters in the regular expression
but it does not matter in my string. Any thoughts or references that might
help me out a little?
Thanks in advance for you help.
Ryan Taylor
I am trying to create a regular expression that will let me know if a string
has the following criteria. Order does not matter in the string, but when
building a regular expression it does, right? I am brand new to regular
expressions and having a little (read: a lot of) difficulty in making a
regular expression that makes sure the string meets the following rules.
The string contains at least one character from two of the following four
sets.
- an uppercase alpha character
- a lowercase alpha character
- a digit
- a punctuation mark (IE: , . ; ' " ! ?)
The problem that I am having is that order matters in the regular expression
but it does not matter in my string. Any thoughts or references that might
help me out a little?
Thanks in advance for you help.
Ryan Taylor