I think a new string syntax is way easier to learn then another solution then backslashes. Also, it can solve more problem then just regexp issues.
How does Perl solve this?
For the object oriented/functional solution, I'm still waiting for your Regexp system. :)
/ Mirar
Previous text:
2003-09-21 14:49: Subject: wish: string with other quoting then \
As if it would be any less learning with a new string syntax? In either case the user has to come to terms with nonstandard (as in non-C and non-regex) syntax.
My personal belief when it comes to regexps is that it's simpler to live with than to try to improve. For very complicated regexps I think the right way is to use something completely different and only use the cryptic strings for smaller parts. E.g:
Rx.Rx syntactic_ws = Rx.Rx ( Rx.rep (Rx.or ("[ \t\n\r\f\v]", // Ordinary whitespace. "//[^\n]*\n", // Line comments. "/\*([^*]|\*[^/])*\*/" // Block comments. )));
/ Martin Stjernholm, Roxen IS