cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <>
Subject patch for xdocs/logicsheet-forms.xml
Date Wed, 29 Aug 2001 13:12:59 GMT
Hi All,

A very low priority patch for the xdocs.

I've updated the valid email regular expression example to allow emails that
don't end in a dot followed by 3 letters.

This now allows domains such as :)

I'm not a regexpert so I'd recommend a sanity check on this one.

Best Regards,


Index: logicsheet-forms.xml
RCS file: /home/cvspublic/xml-cocoon2/xdocs/logicsheet-forms.xml,v
retrieving revision
diff -u -r1.1.2.7 logicsheet-forms.xml
--- logicsheet-forms.xml	2001/07/28 22:01:58
+++ logicsheet-forms.xml	2001/08/29 13:09:41
@@ -43,8 +43,7 @@

   <parameter name="persons" type="long" min="1" default="4" nullable="no"/>
   <parameter name="deposit" type="double" min="10.0" max="999.99"/>
-  <parameter name="email" type="string" max-len="50"
-             matches-regex="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$">
+  <parameter name="email" type="string" max-len="50"

   <constraint-set name="car-reservation">
     <validate name="persons"/>

Chris Newland
Software Research Engineer

Emorphia Ltd
Registered in England.  4133002
Mill House, Station Approach, Harlow Mill, Harlow, Essex, CM20 2EL, UK

Tel: +44 (0)1279 450100
Fax: +44 (0)1279 450102

Check out FIPA-OS at

This message may contain information proprietary to Emorphia so any
unauthorised disclosure, copying or distribution of its contents is strictly

View raw message