given:
var regexp = new RegExp("<~~include(.*?)~~>", "g");
What's the easist way in javascript to assign a variable to whatever's matched by .*?
I can do this, but it's a little ugly:
myString.match(regexp).replace("<~~include", "").replace("~~>", "");