![Picture of Chris Grafix Picture of Chris Grafix](/graphics/unknown.gif)
Chris Grafix - 2006-04-14 13:10:10
Hi,
I have a couple of regular expressions that although I have tested them with a Regex Editor for functionality, they won't work in conjunction with the form generation class.
"ValidateRegularExpression"=>"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,15})$",
This regular expression causes a Warning: ereg() [function.ereg]: REG_BADRPT
"ValidateRegularExpression"=>"^(\+\d{1,4}[-. ])?[\(]?(\d{1,5})[\)]?[-. ](\d{2,4})?[-. ]?(\d{4,5})[-. ]?((#|x|ex|ext|extension)[-. ]?(\d{3,4}))?$",
This regular expression validates always to 'no match' regardless of the input.
I would appreciate any input on this problem.
Thank you very much for your consideration.
Sincerely,
Chris
PANOSPHERIC Virtual Imaging