I’d like to make a regular exp for C#. The 1st two letters are characters which are optional and then 4 digits which are mandatory.
as:
4584
0259
0015
G3227
G3277
G4018
G3737
G3737
G3277
GU4444
GU4444
G3277
G3277
G3988
C3737
G3227
G3227
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.
I suggest this:
This would be for finding text like this in a larger string. If you want to validate a string instead, use