469,903 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Regular Expressions (RegEx)

My DotNet component needs to parse a phone number and check that it is in
the range 01234560020 to 01234562500. It needs to be done using a Regular
Expression. (Please don't ask why!!!) Please can someone help me out?

Feb 4 '08 #1
1 1151
On 4 , 21:06, "chris fellows" <chrisfell...@nospam.co.ukwrote:
My DotNet component needs to parse a phone number and check that it is in
the range 01234560020 to 01234562500. It needs to be done using a Regular
Expression. (Please don't ask why!!!) Please can someone help me out?
Hi Chris,

I don't know how phone number looks like.
Here's expression that matches numbers inbetween 01234560020,
01234562500

0123456(?:(?:00[2-9]\d)|(?:0[1-9]\d\d)|(?:1\d{3})|(?:2[0-4]\d{2})|(?:
2500))

Thanks,
Sergey
Feb 4 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Michael McGarry | last post: by
20 posts views Thread by Toby | last post: by
2 posts views Thread by Sehboo | last post: by
7 posts views Thread by Billa | last post: by
9 posts views Thread by Pete Davis | last post: by
3 posts views Thread by a | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.