All pastes #886568 Raw Edit

Something

public text v1 · immutable
#886568 ·published 2008-01-31 19:29 UTC
rendered paste body
myInt = 0
storage = ['']
query = ('(one)(two)(three)')
matches = re.findall(query,data)

for storage[myInt] in matches:
     print storage[myInt]
     myInt += 1

# ---------OR------------

myInt = 0
query = ('(expression1)(expression2)(expression3)')
matches = re.findall(query,data)

for storage in matches:      #pretend there are 4 _different_ matches
     print storage[myInt]


# -------BOTH SHOW-------

this is match one
this is match one
this is match one
this is match one