R
RN1
$ in RegExp means the end of a string. So if the ValidationExpression
for a RegularExpressionValidator which validates a TextBox is "c
$" (without the double quotes), shouldn't input strings 'abc', '23pc',
'c9mccc' (all without the single quotes) evaluate to True BUT it
doesn't. In fact, these strings evaluate to False. Only the string
'c' (again without the single quotes) evaluates to True.
If I am not mistaken, "c$" means that any string (irrespective of its
length) will evaluate to True provided the last character in the
string is 'c' (without the single quotes). Or have I got it wrong? If
so, please correct me.
Thanks,
Ron
for a RegularExpressionValidator which validates a TextBox is "c
$" (without the double quotes), shouldn't input strings 'abc', '23pc',
'c9mccc' (all without the single quotes) evaluate to True BUT it
doesn't. In fact, these strings evaluate to False. Only the string
'c' (again without the single quotes) evaluates to True.
If I am not mistaken, "c$" means that any string (irrespective of its
length) will evaluate to True provided the last character in the
string is 'c' (without the single quotes). Or have I got it wrong? If
so, please correct me.
Thanks,
Ron