Hi!
There's a escapeRegExp() function in the core, but the corresponding 
unescapeRegExp function is missing. Could it be added?

Here's the code I used, analog to the escapeRegExp() function:

String.prototype.unescapeRegExp = (function ()
{
    var s = "\\^$*+?()=!|,{}[].";
    var c = this;
    var t, re;
    for(t=0; t<s.length; t++) {
        re = new RegExp("\\"+s.substr(t,1),"g");
        c = c.replace(re, s.substr(t,1));
    }
    return c;
});


w

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to