c# - RegularExpression validator so my textbox have to start with uppercase -
i'm using expression:
^[a-z][a-za-z0-9]*$
and works fine if type example "kristian". when want continue sentence typing "kristian working sharepoint", doesn't work. better expression out there?
it's simple as:
[a-z].*
for reference, ^[a-z][a-za-z0-9]*$
making sure each word's first letter capitalized , not matching "every character" occur.
check out http://www.zytrax.com/tech/web/regex.htm reference material.
Comments
Post a Comment