I use : ^([\d\w][\d\w\-_\.]*@[\d\w\-_]+\.[\w]+[\.\w]*$ which works too.
When do I have to use square brackets and when do I use round ones (parenthesis) ? Thanks. Babs ----- Original Message ----- From: "Ivan Luzyanin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 13, 2002 11:46 AM Subject: Re: [SUMMARY] form validator and matches-regex problem Hi! Try matches-regex="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)+(\w){2,4}$"/> Best regards! Ivan. --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>