Emacs  : GNU Emacs 20.7.1 (i386-*-nt5.0.2195)
 of Tue Jun 13 2000 on buffy
Package: BBDB 2.32

Hi, I didn't test this too much and sorry it's not a diff,
but the following changes allow bbdb to parse phone numbers
of the form:

123.456.7891
123/456-7891

That is where periods are use as separators or if a forward
slash is use to separate the area code from the number.

In bbdb-com.el:

(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]*")

Also I found that bbdb-snarf-phone-regexp seemed to escape
periods inside of []s.  There's no need for this as . is not
a special character inside of [].  So: 

In bbdb-snarf.el:

(defvar bbdb-snarf-phone-regexp
  (concat
   "\\(([2-9][0-9][0-9])[-. ]?\\|[2-9][0-9][0-9][-. ]\\)?"
   "[0-9][0-9][0-9][-. ][0-9][0-9][0-9][0-9]"
   "\\( *\\(x\\|ext\\.?\\) *[0-9]+\\)?"
   )
  "regexp to match phones.")







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

Reply via email to