W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

AVTs inside regexen

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Wed, 21 May 2003 15:22:03 +0200
Message-ID: <3ECB7D7B.8090404@pinkjuice.com>
To: public-qt-comments@w3.org


In a user forum of an XSLT processor, it was asked if allowing AVTs 
inside regexen should be disallowed because coders could forget to 
escape curly braces that aren't meant to delimit AVTs, eg quantifier 

I just wanted to say that I think that you should continue to allow AVTs 
inside regexen. This offers flexibility, and coders can be expected to 
remember escaping [note].


Because the regex attribute is an attribute value template, curly braces 
within the regular expression must be doubled. For example, to match a 
sequence of one to five characters followed by whitespace, write 

Received on Wednesday, 21 May 2003 09:23:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:12 UTC