var text = "{templateUrl: 'conversations/conversations.tpl.html',";
var result = text.match(/templateUrl:(\s*['"]\S*['"])/g);
I want result to be 'conversations/conversations.tpl.html' but I am getting "templateUrl: 'conversations/conversations.tpl.html'".
I have checked it here: http://regex101.com/r/uW1vY6 and it does what I expect, but not in the console or in a real program.
What am I doing wrong?