Originally posted by Vidya Ravi:
"The acceptable value is one or more occurrences of a lowercase letter followed by a uppercase letter from a to z.
1. aAbBcC
2. aaAbBccC
"
Okay....i am totally confused. 2 also meet the criteria. So isnt 2 correct?
I am not an expert at regular expressions
But assuming wht Lasse said is correct,
The expression
"The acceptable value is one or more occurrences of a lowercase letter followed by a uppercase letter from a to z.
means that a lower case letter MUST be followed by an upper case letter NOT a lower case Letter !!!
so aA is correct !!!
but
aa is wrong !!!
as it is a lowercase letter followed by a lower case letter !!!
so is aaAbBccC !!!
If u want "aaAbBccC" to be right, i think you ahve to change teh regualr expression !!! My guess is
mabe if the expresion included a "*" like
([a-z]*[A-Z])+
But I am not sure !!! :roll: (any regular expression experts ..please answer
)
If i am wrong, please correct me
hope this helps
and clears your doubts