J
Jane Doe
Hi,
I've tried different things, but still can't find how to escape a
single quote in a string:
mystring = '\'stuff\''
var input = new RegExp(mystring,"gi");
ie. how to copy 'stuff' including its native single quotes into the
mystring regex?
Thank you
JD.
I've tried different things, but still can't find how to escape a
single quote in a string:
mystring = '\'stuff\''
var input = new RegExp(mystring,"gi");
ie. how to copy 'stuff' including its native single quotes into the
mystring regex?
Thank you
JD.