MR E
MR E

Reputation: 23

Regular Expression format for 0000/123456/23

I have a text box for Registration Number and i want it to use the following format 2013/123456/25. I want to validate for in-correct format using Regular Expression Validator.

The exact format must be first 4 numbers/6 numbers/2 numbers -->(2013/123456/25)

Thank you for your help...

Upvotes: 0

Views: 61

Answers (1)

Royi Namir
Royi Namir

Reputation: 148664

You could use something like this :

^\d{4}/\d{6}/\d{2}$

Upvotes: 1

Related Questions