<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><div>/b</div><div><br><div><div><div>On Dec 18, 2011, at 8:08 PM, Ryan V wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">On Mon, Dec 19, 2011 at 2:56 AM, Elliott Vogel <<a href="mailto:elliott@zoogmedia.com">elliott@zoogmedia.com</a>>wrote:<br><br><blockquote type="cite">I was wondering if anyone has a regex expression that works to return<br></blockquote><blockquote type="cite">just digest? I have some clients sending requests formatted to +1 (555)<br></blockquote><blockquote type="cite">555-5555, 555-555-5555, 555.555.5555 which aren’t be processed by our dial<br></blockquote><blockquote type="cite">plan because we are expecting all numbers (5555555555) ****<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>How about this?<br><br>^\+1\s+\((\d{3})\)\s(\d{3})-(\d{4})$|^(\d{3})-(\d{3})-(\d{4})$|^(\d{3})\.(\d{3})\.(\d{4})$<br><br>$1, $2 and $3 should give you the full number.<br><br>Regards,<br><br>Ryan</span></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>-- </div><div>Brian West </div><div>FreeSWITCH Solutions, LLC</div><div>Phone: +1 (918) 420-9266 </div><div>Fax: +1 (918) 420-9267</div><div><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span></span>
</div>
<br></div></div></body></html>