Archive

Archive for May, 2009

My opinion of Skype on Three

May 14th, 2009 No comments

3 asked me to make a video with my thoughts on using Skype with their handsets. I am a big supporter of anything that gives me free phone calls! You can see the video on the 3 Bebo page.

Categories: Skype

Regular Expression to match UK residential telephone numbers

May 13th, 2009 8 comments

A regular expression to match UK residential telephone numbers. It understands the difference between 02 and 01 numbers. It will accept all common formats and internationally formatted numbers.

Examples of accepted numbers:

  • 02081234567
  • 0208 123 4567
  • 020 8123 4567
  • 0208 123-4567
  • +44 208 123 4567
  • +44 (0) 208 123 4567
  • 01234 567 890
  • +44 0 1234 567-890
  • 07712 123 456

Examples of numbers that will not be accepted:

  • 020812345678
  • 123456789
  • 07612 123 4567
  • +33 345 876 1298

This is my first submission to the excellent regexlib.com regular expression library – I’d appreciate if you could vote for it!

/^(((44))( )?|((+44))( )?|(+44)( )?|(44)( )?)?((0)|((0)))?( )?(((1[0-9]{3})|(7[1-9]{1}[0-9]{2})|(20)( )?[7-8]{1})( )?([0-9]{3}[ -]?[0-9]{3})|(2[0-9]{2}( )?[0-9]{3}[ -]?[0-9]{4}))$/

Let me know if I’ve missed anything!

Update: This has been amended as per comments below, to allow 020 as a prefix for London, 07624 (Isle of Man) and 074xx xxxxxx.

Categories: JavaScript, RegEx

Amber Mac mentions me in an article on Nicecast

May 12th, 2009 No comments

Amber Mac recently asked on Twitter if anyone had experience with Nicecast. I chimed in, and she asked if she could quote me in an article she was writing. I was only too happy to oblige, and here is the result.

Categories: Booshtukka, DJing, Music