Regular Expression for UK Phone numbers?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QW5keQ==?=

    Regular Expression for UK Phone numbers?

    Hi.
    Has anyone a reliable regular expression for UK phone numbers?

    Done the usual google search and on regexlib but so far nothing seems close
    to actually working.

    Maybe of our stupid phone numbers were'nt so complicated.... .

    Cheers
  • John Timney \(MVP\)

    #2
    Re: Regular Expression for UK Phone numbers?

    At least one of the patterns has a five rating on regexplib, which suggests
    it should work.



    Regards

    John Timney (MVP)




    "Andy" <Andy@discussio ns.microsoft.co mwrote in message
    news:1026726A-71D1-4DC4-B93A-0B3DA161DF21@mi crosoft.com...
    Hi.
    Has anyone a reliable regular expression for UK phone numbers?
    >
    Done the usual google search and on regexlib but so far nothing seems
    close
    to actually working.
    >
    Maybe of our stupid phone numbers were'nt so complicated.... .
    >
    Cheers

    Comment

    • =?Utf-8?B?QW5keSBC?=

      #3
      Re: Regular Expression for UK Phone numbers?



      "John Timney (MVP)" wrote:
      At least one of the patterns has a five rating on regexplib, which suggests
      it should work.
      >

      >
      Regards
      >
      John Timney (MVP)


      >
      >
      "Andy" <Andy@discussio ns.microsoft.co mwrote in message
      news:1026726A-71D1-4DC4-B93A-0B3DA161DF21@mi crosoft.com...
      Hi.
      Has anyone a reliable regular expression for UK phone numbers?

      Done the usual google search and on regexlib but so far nothing seems
      close
      to actually working.

      Maybe of our stupid phone numbers were'nt so complicated.... .

      Cheers
      >
      >
      >
      Only the mobile one has 5 stars, the normal phone-numbers one doesn't seem
      to like London numbers (0208 etc). If anyone has any bright ideas let us
      know, otherwise, I'm off to try to teach myself regexes ...

      Comment

      Working...