Skip to Content
0
Jul 22, 2008 at 02:57 PM

Back with RegEx

46 Views

I am using PHP pages along with SAP . In that i need to validate the phone numbers entered.

Following is the RegEx for this

 d{3}-d{4}

But this scenario is failing if phone numbers are entered this way

399-3899877

ie sometimes i am getting the data in SAP in the above said manner

this scenario my RegEx is failing.

Any info related to this greatly appreciated.

a®s

Edited by: a®s on Jul 22, 2008 11:15 AM