In [1]:
import re
In [2]:
s = 'aaa@xxx.com, bbb@yyy.com'
In [3]:
m = re.match(r'.+com', s)
print(m)
In [4]:
print(m.group())
In [5]:
m = re.match(r'.+?com', s)
print(m)
In [6]:
print(m.group())