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 ^,^
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_ireland.552.440.html
cheers,
Pádraig.
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 ^,^