Apply RegExp.exec recursively. Missing part of the standard RegExp interface