let statement = "var text = "{templateUrl: 'conversations/conversations.tpl.html',";
let outcome = statement.match(/templateUrl:(\s*['"]\S*['"])/g);
The intended result should be 'conversations/conversations.tpl.html' but instead I am receiving "templateUrl: 'conversations/conversations.tpl.html'".
I have validated it on this tool: http://regex101.com/r/uW1vY6 and it is working as expected there, but not when tested in the console or a real program.
Can anyone point out where I might be making an error?