I've added some allowable separator characters to the phone-number
parsing regexps in bbdb-com.el (BBDB version 2.32), so that phone
numbers of the following forms will also be parsed as North American
phone numbers:

      781/592-5802
      781.592.5802

Jeff Bigler


--- bbdb-com.el Wed Dec 12 15:14:09 2001
+++ bbdb-com.el.orig    Sun Feb 18 03:00:39 2001
@@ -266,8 +266,8 @@
 
 ;;; Parsing phone numbers
 
-(defconst bbdb-phone-area-regexp "(?[ \t]*\\+?1?[ \t]*[-\(]?[ \t]*[-\(]?[ 
\t]*\\([2-9][0-9][0-9]\\)[ \t]*)?[- /\.\t]*")
-(defconst bbdb-phone-main-regexp "\\([2-9][0-9][0-9]\\)[ \t]*-?[ 
\.\t]*\\([0-9][0-9][0-9][0-9]\\)[ \t]*")
+(defconst bbdb-phone-area-regexp "(?[ \t]*\\+?1?[ \t]*[-\(]?[ \t]*[-\(]?[ 
+\t]*\\([2-9][0-9][0-9]\\)[ \t]*)?[- \t]*")
+(defconst bbdb-phone-main-regexp "\\([1-9][0-9][0-9]\\)[ \t]*-?[ 
+\t]*\\([0-9][0-9][0-9][0-9]\\)[ \t]*")
 (defconst bbdb-phone-ext-regexp  "x?[ \t]*\\([0-9]+\\)[ \t]*")
 
 (defconst bbdb-phone-regexp-1 (concat "^[ \t]*" bbdb-phone-area-regexp 
bbdb-phone-main-regexp bbdb-phone-ext-regexp "$"))


_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to