A decent glue to a regexp engine ought to include a function to quote a string to a regexp that only matches that string, i.e. like str() in my earlier message. (A decent regexp engine ought to allow entering string literals directly without the conversion to and from regexp syntax.) A function like that is useful regardless of string and regexp quoting rules.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-21 19:54: Subject: Re: wish: string with other quoting then \
On Sun, Sep 21, 2003 at 07:00:01PM +0200, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Fortunately the regexp syntax isn't Emacs-style, so the regexp is "([a-z]+)" in either case. That's actually a very large factor in
Exactly my point. In my example I meant literal "(", ")" and "+" :))
The quoting of literals in modern REs is sometimes a bit confusing in regular (C style) strings....
Regards, /Al
/ Brevbäraren