Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Irish Landline phone number validation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Kersten  
View profile  
 More options Jun 29, 9:04 am
From: Tim Kersten <t...@io41.com>
Date: Mon, 29 Jun 2009 14:04:02 +0100
Local: Mon, Jun 29 2009 9:04 am
Subject: Irish Landline phone number validation
On my search for information I came across this 2004 post:
http://lists.evolt.org/archive/Week-of-Mon-20041206/166952.html

From the above:

You see, unlike more sane telephone companies, Eircom (or rather the
Department of Post and Telegraph, which it was part of when the "system"
was devised) created a rather ad-hoc scheme, the rationale first being
"nobody outside of Dublin is ever going to need a phone", then "nobody
outside of the towns is ever going to need a phone", then "nobody in
Connacht is ever going to need a phone", then "everybody who's ever
going to be getting a line installed already has one", and finally "oh
crap! We really screwed that up!"

So before I go and attempt a regex or validation function for just
landlines in Ireland, does anybody have something similar already done
that they might share? Or perhaps any pointers to information
necessary to implement this, other than the linked post?

Obviously I'm using python, but any other implementation would be
useful so that I can port it.

Cheers,
Tim ^,^


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Kersten  
View profile  
 More options Jun 29, 9:34 am
From: Daniel Kersten <dkers...@gmail.com>
Date: Mon, 29 Jun 2009 14:34:18 +0100
Local: Mon, Jun 29 2009 9:34 am
Subject: Re: Irish Landline phone number validation
Write a script to ring it. If it dials, then its a valid phone. Now
write another script to text it. If you get a successful delivery,
then its a mobile phone. Done!

I don't know the real answer, unfortunately :'(

2009/6/29 Tim Kersten <t...@io41.com>:

--
Daniel Kersten.
Leveraging dynamic paradigms since the synergies of 1985.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pádraig Brady  
View profile  
 More options Jun 29, 9:58 am
From: Pádraig Brady <P...@draigBrady.com>
Date: Mon, 29 Jun 2009 14:58:58 +0100
Local: Mon, Jun 29 2009 9:58 am
Subject: Re: Irish Landline phone number validation

Tim Kersten wrote:
> On my search for information I came across this 2004 post:
> http://lists.evolt.org/archive/Week-of-Mon-20041206/166952.html

> So before I go and attempt a regex or validation function for just
> landlines in Ireland, does anybody have something similar already done
> that they might share? Or perhaps any pointers to information
> necessary to implement this, other than the linked post?

> Obviously I'm using python, but any other implementation would be
> useful so that I can port it.

You could screen scrape the "can I get broadband" checking form at www.eircom.ie
That would be accurate but slower than a slow thing.
Note comreg maintain the numbering plan for Ireland:
http://www.comreg.ie/licensing_and_services/numbering_plan_for_irelan...

cheers,
Pádraig.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Wilson  
View profile  
 More options Jun 29, 10:11 am
From: David Wilson <d...@botanicus.net>
Date: Mon, 29 Jun 2009 15:11:35 +0100
Local: Mon, Jun 29 2009 10:11 am
Subject: Re: Irish Landline phone number validation
Hey Tim,

It's pretty much diminishing returns after checking for valid length
and prefix, since you can't verify the number given is in the hands of
the person filling out the form, unless you use some kind of
telephone/SMS verification, after which you still can't know whether
it's just some random phone box.

You may also end up baking the current state of the Irish telephone
system into a regex that might waste a lot of someone else's time in
the future. ;)  I guess it depends on what you need the phone number
for. If it's just an ancillary contact point for an account, then a
basic sanity check would be sufficient.

David

2009/6/29 Tim Kersten <t...@io41.com>:

--
It is better to be wrong than to be vague.
  — Freeman Dyson

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Connors  
View profile  
 More options Jun 29, 10:21 am
From: Michael Connors <connor...@gmail.com>
Date: Mon, 29 Jun 2009 16:21:18 +0200
Local: Mon, Jun 29 2009 10:21 am
Subject: Re: Irish Landline phone number validation

Don't make the validation too good.
If there is one thing I hate, it is having to try and invent validating
postcodes and landlines (when I was living in Ireland I had neither) in
order to use a website.

--
Michael Connors


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Kersten  
View profile  
 More options Jun 29, 10:49 am
From: Tim Kersten <t...@io41.com>
Date: Mon, 29 Jun 2009 15:49:35 +0100
Local: Mon, Jun 29 2009 10:49 am
Subject: Re: Irish Landline phone number validation
Thanks all! It doesn't make sense to go beyond a small sanity check,
so I've thrown this regex together based on comreg's current and
planned numbers, which seems to do the trick:

0(1|[2,3,6,7,9]\d|[4,5]\d{1,2})[1-9]\d{4,6}

> If there is one thing I hate, it is having to try and invent validating
> postcodes and landlines (when I was living in Ireland I had neither) in
> order to use a website.

I hate this too. In this case, landlines are required from
institutions who use the service, so individuals aren't effected. :-)

Regards,
Tim ^,^


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google