I need a well tested Regular Expression (.net style preferred), or some other simple bit of code that will parse a USA/CA phone number into component parts, so:
This is the one I use:
^(?:(?:[\+]?(?[\d]{1,3}(?:[ ]+|[\-.])))?[(]?(?[\d]{3})[\-/)]?(?:[ ]+)?)?(?[a-zA-Z2-9][a-zA-Z0-9 \-.]{6,})(?:(?:[ ]+|[xX]|(i:ext[\.]?)){1,2}(?[\d]{1,5}))?$
I got it from RegexLib I believe.