Regex seems to be my kryptonite.
How do I convert:
ereg_replace('[^0-9]+','',str_replace("+", "00", $number))
to:
preg([something])
Coming from: http://james.cridland.net/code/format_uk_phonenumbers.html
Id tried changing the first parameter to /[^0-9]+
and `/[^0-9]+/, as well as both of those sans-quotes, but none worked. I'm afraid I'm a regex newbie.