I'm trying to find all occurrences of items in HTML page that are in between <nobr>
and </nobr>
tags.
EDIT:(nobr is an example. I need to find content between random strings, not always tags)
I tried this
var match = /<nobr>(.*?)<\/nobr>/img.exec(document.documentElement.innerHTML);
alert (match);
But it gives only one occurrence. + it appears twice, once with the <nobr></nobr>
tags and once without them. I need only the version without the tags.