Re: Latest proposal for smart regexes in RELAX NG
David Tolpin <[email protected]> Thu, 6 May 2004 22:50:38 +0500 (AMST)
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
[email protected]: [ 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.