[relaxng-user] Latest proposal for smart regexes in RELAX NG

David Tolpin dvd at davidashen.net
Thu May 6 22:50:38 ICT 2004


jcowan at reutershealth.com:
[ Charset ISO-8859-1 unsupported, converting... ]
> David Tolpin scripsit:
> 
> > As funny as it is, I think that the accepted syntax for regular 
> > expressions is exceptionally elegant, and tools success is a proof
> > of it. There were (and are) other approaches for string pattern
> > matches, but unix/posix regexps are very good.
> 
> Here's a fine example due to Jeffry Friedl:
> 
> [\040\t]*(?:\([^\\\x80-\xff\n\015()]*(?:(?:\\[^\x80-\

This is just an example of bad use of regular expressions, nothing
else. 

Besides, it is just one more proof that string regular expressions
is a powerful tool, not every language can make a statement like
this.

> > not string regexps.
> 
> In small and simple cases, yes.  But the above?
> 
> When I get a chance I'll rewrite this as XML.

And in normal use of Unicode regexps, please. Let's which
one will be shorter and easier to use. 


More information about the relaxng-user mailing list