Hello, I have been trying to create an alphanumeric RegEX expression which contains capital and lowercase letters but have been struggling to get it to work.
After looking at the following sites http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html http://www.experts-exchange.com/Programming/Languages/Regular_Expressions/A_2140-Regular-Expressions-Starter-Guide.html
I found the following
This I thought should check for alphanumeric with both capitals and smaller case letters but it does not. it allows 'AA11111' for example to work. Also 'aa111111'.
Does anyone know how I can enforce the validation that both upper and lowercase characters are included in my string?
On a side note, For a separate check I could do with finding out if a string contains lowercase letters only (with no numbers). Does anyone know the correct RegEx for this?
RegEx is confusing I have to say!!!!!!
Thanks in advance.