TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prashanti Rao
NA
8
13.1k
Regular Expression Forward Slash
Mar 1 2013 2:08 AM
Hi!
I have been having some problems with regular expressions. I want to validate user input when a bus number is entered.
Examples: 37, 37A, 37S, 37A/L, 16A/250, 16A/250K etc
The regular expression I came up with is
(^\d{1,3}[A-Z]{0,3})|(^[\d{1,3}[A-Z]{0,3}\/\d{0,3}[A-Z]{0,3}])
It validates 37, 37A, 37S but when it comes to validating 37A/L it fails. Can someone tell me where I am going wrong with this?
P.S I am using a regular expression validator for a text box. I have placed this in the ValidationExpression.
Thanks.
Prashanti.
Reply
Answers (
3
)
restoring database
generate exe file for deploye