189
rated 0 times
[
194]
[
5]
/ answers: 1 / hits: 16717
/ 9 Years ago, thu, september 3, 2015, 12:00:00
Hi all I tried to create some regex
with random value.
var data = demo purpose?; **OR** var data = demo purpose;
var sentence = can I put these app as demo purpose?;
var re = new RegExp(\b( + data + )\b, g);
console.log(sentence.match(re)); // output [demo purpose]
In variable data
have two different value demo purpose?
& demo purpose
with only question mark. Both console out are same please any one Give me hint what should i do in these case.
-
Thank you
More From » regex