p = String.prototype;

p.matchList = function (regExp) {
	var matches = new Array();
	var match = regExp.exec(this);
	
	if(regExp.global) {
		while(match) {
			matches.push(match.slice(1)[0]);
			match = regExp.exec(this);
		}
	} else {
		if(match)
			matches.push(match.slice(1)[0]);
	}
	return matches;
}

