How to count the regexp pattern from a file?

From a file reads a string into an array,after a cycle through the values converting them into RegExp: re = new RegExp(key.toString(), 'gi'); and check re.test(some_text). If you set RegExp manually then it works, but when reading from a file no (
June 14th 19 at 19:00
0 answer

Find more questions by tags Node.js