By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,154 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,154 IT Pros & Developers. It's quick & easy.

regular Expressions

P: 1
I need to use regular expression validator to validate a course code which takes the format of AAAA-071AE which is stored in a database. each course code is different
can anyone help???
junior developer scotland
Jun 15 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 208
I need to use regular expression validator to validate a course code which takes the format of AAAA-071AE which is stored in a database. each course code is different
can anyone help???
junior developer scotland
Do you know anything about regexs? Have you started to think about this...

It seems that you need to have 4 letters followed by a '-' and then 3 numbers followed by 2 more letters. Since you know this format it shouldn't be that hard to write a regular expression that will validate this.

If you post what you have so far then we can help you and figure out whats wrong with your expression.
Jun 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.