Ok, I think I need to repost my question that was originally:
Javascript Regex group multiple
with a full example. I have:
var text
This is what works:
var text = ""+ " " + " " + " " + " " + " " + " " + " " + ""; var regex = /<([a-zA-Z]*?):([a-zA-Z]*?)\s([\s\S]*?)>/g; var match = null; while ( (match = regex.exec( text )) != null ) console.log(match)
Notice the /g which seems to be neccessary