import re
m = re.match('abc','abcd')
if m is not None:
    print m.group()

print re.split(',','a,b,c,d,e,f,g')

abc
['a', 'b', 'c', 'd', 'e', 'f', 'g']