regex - Validate NIC field in vb.net -



regex - Validate NIC field in vb.net -

i want validate nic number text field in vb form. should contain 9 numbers [0-9] , 1 letter (letter should "v") (first 9 characters numbers,last 1 letter) how validate such thing using regular expression? can help me code? i'm new section.

the examples section in docs shows you. to match digit utilize \d to match 9 numbers state want 9: \d{9} to match letter want [a-za-z] (or more complicated depending on letter is). if want v allow v using [v] i.e. \d{9}[v]

test regex.ismatch

regex vb.net

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -