40
rated 0 times
[
46]
[
6]
/ answers: 1 / hits: 101969
/ 14 Years ago, mon, april 26, 2010, 12:00:00
How to create regex pattern which is concatenate with variable, something like this:
var test =52;
var re = new RegExp(/b+test+b/);
alert('51,52,53'.match(re));
Thanks
More From » regex