Alex Kocharin wrote:
What's the advantage of `re.test(str); RegExp.$1` over `let m=re.match(str); m[1]`?
Right. I think Andrea is smoking something :-P.
I assume RegExp["$'"] and RegExp["$`"] are nice to have, I remember them from perl, but never actually used them in javascript.
I regret them. It was the '90s, dynamicly scoped $-vars in Perl seemed "useful".
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

