JS/ECMAScript - Comprehensive Telephone Number Parser - US Domestic and Overseas - with NAMED Match Data
Explanation
Breaks out a phone number input into the following named segments:
Opt? Matches Name Desc
Y (+ - . :space:) LEADING_PUNCT Leading Punctuation
Y 1-3 Digits (0-9) COUNTRY_CODE International country code (US: '1')
Y (- . :space:) OPT...
Submitted by @JJ/ZenAtWork NerdyDeeds, LLC - a year ago