tags:

views:

38

answers:

2

I am using RegularExpressionValidator, for which i need the expression for the input having 6 characters. In which first letter should should be "M" and the rest 5 characters should be numbers.

how ?

+1  A: 

What about

^[M][0-9]{1,5}$
rahul
For a Regex Validator, you don't need the ^ and $ as the match must equal the whole input string.
Hans Kesting
+1  A: 

try this

^[Mm]\d{1,5}$

I have tested, its working, plz check

Muhammad Akhtar