From: Hugh Sasse Staff Elec Eng Date: 2003-12-04T00:28:03+09:00 Subject: Re: Some Regexp On Thu, 4 Dec 2003, ts wrote: > >>>>> "H" == Hugh Sasse Staff Elec Eng writes: > > H> If the delimters were string constants, not regexps, and therefore > H> of constant length, how would a length greater than one cause this > H> to be impossible? > > You have found the problem : the delimiter can't be a regexp. You can have > string constants, this just make the implementation a little more complex > when it's really easy to do it when you have only one character. String constants are probably the most common case. They are the frequently-asked-for case: for C comment blocks, bounded by /* and */, from faqs about regexps that I have seen. (I don't think nesting is actually respected in C comment blocks, but that's another story.) I think it would be really useful to have this, even restricted to string constants. If I put this up as an RCR would there be support, or have I overlooked somthing else? :-) > > This is why generally you see it implemented like this (delimiter with > only one character) "The simplest thing that could possibly work" :-) > > > Guy Decoux > Thank you, Hugh