Hi,

Just as the current Phone validator assumes all digits are valid for a first 
step we could as well. Ignoring digits the patterns become:
(###) #### ####
(####) ### ####
(####) ######
(#####) #####
(######) ####
(######) #####

(I may of missed one)

It wouldn't be too hard to change the code so that it could use this from the 
resource bundle:
phoneNumberFormat=(###) ### ####, (####) ######, (####) ######, ...

Another idea would be to add regular regular expression support. to the 
validator class

Thanks,
Justin

Reply via email to