On Mon, Jan 26, 2009 at 11:32 AM, Cheong Chung Onn <[email protected]> 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
