Why do you have broken devices sending you numbers in that screwed up format in the request URI in the first place?  At this point you should be using XML_CURL then cleaning that up if this is what you're hitting.  Or you tell your clients to fix their badly broken behavior.

/b

On Dec 18, 2011, at 8:08 PM, Ryan V wrote:

On Mon, Dec 19, 2011 at 2:56 AM, Elliott Vogel <elliott@zoogmedia.com>wrote:

I was wondering if anyone has a regex expression that works to return
just digest? I have some clients sending requests formatted to +1 (555)
555-5555, 555-555-5555, 555.555.5555 which aren’t be processed  by our dial
plan because we are expecting all numbers (5555555555) ****


How about this?

^\+1\s+\((\d{3})\)\s(\d{3})-(\d{4})$|^(\d{3})-(\d{3})-(\d{4})$|^(\d{3})\.(\d{3})\.(\d{4})$

$1, $2 and $3 should give you the full number.

Regards,

Ryan

-- 
Brian West 
FreeSWITCH Solutions, LLC
Phone: +1 (918) 420-9266 
Fax:   +1 (918) 420-9267