I have a string that look like this :
blablablablafunction tr(b){b=b.split("");b=b.reverse();b=b.slice(2);return b.join("")}blablablabla
And i want to get : b=b.split("");b=b.reverse();b=b.slice(2);return b.join("")
with Regex
:
var match = "function tr(b){(.*)}";
var f = html.match(match);
And i get null in f
.Any idea what is the problem?