[opencms-dev] XSD: validationrules

Ashok Hariharan ashok.hariharan at gmail.com
Thu Jan 19 13:35:14 CET 2006


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 ++++



More information about the opencms-dev mailing list