deadpool42
Programmer
- May 24, 2004
- 40
I want to end up with an array containing each bit of text that's surrounded by <row> tags, but I can only get it to match the first one.
Code:
var results = /<row>(.+?)<\/row>/g;
var tableRows = results.exec('<row>word1</row><row>word2</row><row>word3</row>');
alert(tableRows.length);