All pastes #95656 Raw Edit

Anonymous

public text v1 · immutable
#95656 ·published 2006-07-22 05:59 UTC
rendered paste body
import re

reg = "He captured a catfish for his cat."

p = re.compile(r".*cat")
m = p.match(reg)
if m:
    print 'Match found: ', m.start()
else:
    print 'No match'