In [1]:
import re

In [2]:
s = 'aaa@xxx.com, bbb@yyy.com'

In [3]:
m = re.match(r'.+com', s)
print(m)


<re.Match object; span=(0, 24), match='aaa@xxx.com, bbb@yyy.com'>

In [4]:
print(m.group())


aaa@xxx.com, bbb@yyy.com

In [5]:
m = re.match(r'.+?com', s)
print(m)


<re.Match object; span=(0, 11), match='aaa@xxx.com'>

In [6]:
print(m.group())


aaa@xxx.com