let extractStr = "Extract the word 'coding' from this string.";
let codingRegex = /change/; // Change this line
myStr.match(codingRegex); // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.
I do it but again tell me that:
result is not defined
And my code is:
let extractStr = “Extract the word ‘coding’ from this string.”;
let codingRegex = /coding/; // Change this line
extractStr.match(codingRegex); // Change this line