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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -