directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Is TelephoneNumberMatch - 2.5.13.20 broken?
Date Mon, 26 Jan 2009 11:03:34 GMT
On Mon, Jan 26, 2009 at 11:32 AM, Cheong Chung Onn
<chungonn@greenfossil.com> wrote:
> Hi Emmanuel,
>
>>> Your regex has a typo, a missing dot at the beginning  .*[+]? *((\([0-9-
>>> ]+\))|[0-9- ]+)+
>>>
>>
>> It's not a dot, AFAICR, but a space.
>>
>
> Yes, a space will definitely correct compared to a dot :)

Here is the real regexp :

private static final String DEFAULT_REGEXP = "^ *[+]? *((\\([0-9-
]+\\))|[0-9- ]+)+$";


>>>
>>> I checked against your regex and it does work. However, when i searched
>>> for
>>> a telephoneNumber=1-801-555-1212, it fails. Below is the entry i used for
>>> my
>>> testing.
>>>
>>
>> Strange ... I will check that and come back to you when done.
>>
>
> I just ran another test -  using telephoneNumber=18015551212 does not work
> too.

There must be something wrong somwhere else. The syntaxChecker works
well with all the phone number you gave (I checked).

I will investigate tonite...

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
View raw message