I need a regular expression that matches a 15 character string as follows:
- Characters 1-6 should match ‘100702’
- Characters 7-8 should match ’25’ or ’26’
- Characters 9-15 should match any digit (0-9) but must contain a digit.
This is for .NET
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is one that would work for .NET, following your description:
See this reference.