Hi Stephanie, 2011/10/12 Stéphanie <[email protected]>:
Please, does someone have a response ?
My field "name" is made like that :
- Validation Regular Expression : /.{1,15}/
I just tested and this regular expression matches any name that _contains_ a sequence of 1 to 15 characters. You want to match the entire name so you have to use: /^.{1,15}$/ ^ and $ mark the start/end of the name. Hope this helps, Marius
- Validation Message : ApplicationClass_nameValueError
And I have a translations page (that is weel defined in my "Wiki Administration Page") and said : Space.ApplicationClass_nameValueError=Your name is too long
As I said before, when I don't want an empty field, I use /.+/ and a Validation Message and there is no problem.
Is the expression /.{1,15}/ a deprecated expression or is there a problem somewhere ??
Thanks for your response.
Best regards, Stephanie
-- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-Validation-Regular-Expression... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users