Given the following string:
Lorem {{ipsum}} dolor {{sit}} amet
I'm trying to extract thw words ipsum and sit with the following regex:
content = 'Lorem {{ipsum}} dolor {{sit}} amet'
var regexp = /^\\\{\\\{(\w)\\\}\\\}/g;
var match = regexp .exec(content);
The match object returns null. What am I missing? Thanks!
{{ipsum}}different from{{sit}}? And what makesametdifferent fromLoremanddolor?{{and}}. There was a mistake in the question. I'm trying to extract the words ipsum and sit :)