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
Sanjeev
NA
28
0
need a REGEX pattern to match
Mar 17 2011 4:38 PM
need help with validating a 9-digit number.
CANNOT BE -----------
000000000
111111111
222222222
333333333
444444444
555555555
666666666
777777777
888888888
999999999
4-5 position(s) CANNOT BE 00 --
123001234
6-9 position(s) CANNOT BE 00 --
234550000
The nine numbers CANNOT BE sequential -- but only the following 4 four below, for the time being --
012345678
123456789
987654321
098765432
I had just managed to get the first piece done --
"^(?:(?!0+|1+|2+|3+|4+))\d{9}$"
Thanks a TON for the help friends.
Reply
Answers (
3
)
How to Get data in WebBrowser
How to strore and retrieve images in Oracle Database ?