import rem = re.match('foo', 'bar')# pattern does not match stringif m is not None: m.group()# (1-line version of ifclause)m = re.match('foo', 'food on the table') # match succeedsprint m.group()print re.match('foo', 'food on the table').group()
Name (required)
email (will not be published) (required)
Website