
seidmh - 2006-12-27 23:57:13
I have the following RegExp validating a text box for a date.
"ValidateRegularExpression"=>"2\d\d\d-([1-9]|0[1-9]|1[012])-([1-9]|0[1-9]|[12][0-9]|3[01])",
"ValidateRegularExpressionErrorMessage"=>"Enter a valid date (yyyy-mm-dd)."
It works with the javascript, but then it fails on the server side.
I think it is a problem with \d because the following works on both javascript and on the server side: "2[0-9]{3}-([1-9]|0[1-9]|1[012])-([1-9]|0[1-9]|[12][0-9]|3[01])"