样本:user<user@test.com> 如何提取其中的 user@test.com 部分?
Fragen Sie, wie man reguläre Ausdrücke in Python optimal implementiert?
Following the voice in heart.
import re str = 'user<user@test.com>' print re.search('<(.+)>', str).group(1)
# coding: utf8 import re string = 'user<user@test.com>' print re.findall(r'<([^>]+)', string)
Following the voice in heart.