[opencms-dev] XSD: validationrules

Siegfried Puchbauer siegfried.puchbauer at gmail.com
Thu Jan 19 15:00:20 CET 2006


or
regex="^.*[\S]+.*$"

greets

2006/1/19, Ashok Hariharan <ashok.hariharan at gmail.com>:
>
> You need to use a regular expression:
>
> http://java.sun.com/developer/technicalArticles/releases/1.4regex/
> http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
>
> in your case this will work for you:
>
> <rule element="Matchcode" regex="^[\w][a-zA-Z_0-9\s\S]+?"  ...../>
>
> On 1/19/06, Georg Raffer <georg.nc at gmail.com> wrote:
>         <rule element="Matchcode" regex="!.*[Ee]rror.*"
> > message="${
> key.editor.errormessage.Article.mustnotcontainerror|${validation.path}}"
> > />
>
>
> --
> ++++ Ashok Hariharan ++++
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



--
Mit freundlichen Grüßen

Siegfried Puchbauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060119/c9a3df7e/attachment.htm>


More information about the opencms-dev mailing list