m = matcher.match(w, index)
o = []
while m and index != m.end():
    o.append(m.group(1))
index = m.end()
m = matcher.match(w, index)
return o
What is the Python way of doing a \G anchored parsing loop?