On 25Nov2006 16:34, Bill McCarthy <[EMAIL PROTECTED]> wrote: | > So you're really seeing here the regexp parser being forgiving instead | > of strict. | | Yes. That's what I'm calling a "special case." I don't | believe that special case is documented.
If you want to document things like this, rather than being really precise and enumerating every weido invalid-but-accepted syntax, you may find it's as simple as: if a punctuation/special/meta char cannot complete the special syntax it introduces, treat the special char as an ordinary char and proceed. That covers a multitude of things where parsers forgive invalid syntax and still act somewhat sensibly. The shell is much the same in behaviour for its globbing. -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ It is without question that planning should be for the long term. Not for the next day, but for the next millenium. Otherwise we shall not survive. - Craig Dewick (Freight Raver Craig) <[EMAIL PROTECTED]>
