
24 Jul
2011
24 Jul
'11
11:14 p.m.
Hi Alex, Thank you for that input. For good measurement I ran them all though the code - most of them are covered, but the "0729-974-802" was not - so great that we caught that one. I added it to the code: $phone = '254' . preg_replace('/^\+?(\(?\+?254\)?)?(\(?0\)?)?7/', '7', str_replace(array(' ', '-'), '', $input)); .. Mike On 7/24/11 11:06 PM, Alex Wanjohi wrote:
Hi,
what of +2540729974802 2540729974802 0729-974-802 0729 974 802 254 0729 974 802 +254 729 974 802
I may have repeated some yours - but looking at your code, am sure it would capture these too.. :)
-Alex