SAS Quality Knowledge Base for Contact Information 27

Phone

Parse Definition

Phone
Description The Phone parse definition parses phone numbers into a set of tokens.
Output Tokens Country Code
Area Code
Base Number
Extension
Line Type
Additional Info
Example 1 Input Output Token Output
Work: +1 418 447-3000 Ext 3118 (ask for Ron) Country Code +1
Area Code 418
Base Number 447-3000
Extension 3118
Line Type Work:
Additional Info (ask for Ron)
Example 2 Input Output Token Output
011 44 2012345000 Country Code 011 44
Area Code  
Base Number 2012345000
Extension  
Line Type  
Additional Info  
Example 3 Input Output Token Output
Toll Free: (800) 888-4257 Country Code  
Area Code 800
Base Number 888-4257
Extension  
Line Type Toll Free:
Additional Info  
Example 4 Input Output Token Output
705 424-1442 3118 (w) Country Code  
Area Code 705
Base Number 424-1442
Extension 3118
Line Type (w)
Additional Info  
Example 5 Input Output Token Output
705 424-1442 3118 (Mais) Country Code  
Area Code 705
Base Number 424-1442
Extension 3118
Line Type (Mais)
Additional Info  
Example 6 Input Output Token Output
506 447 3000 Poste 1234 Country Code  
Area Code 506
Base Number 447 3000
Extension 1234
Line Type  
Additional Info  
Remarks