I think you'll need to use the RegExp constructor:...
# suitescript
e
I think you'll need to use the RegExp constructor:
Copy code
var pattern = new RegExp(testNumber);
return pattern.test(myString);