我想找到仅包含字母a,b和c的每一行。我有正则表达式
print(re.findall('^[abc]+$', text))
但这段文字没有任何结果:
为什么是这样?我认为问题在于^和$字符,但我不明白为什么。
^
$
python regex pcre python-3.x
pcre ×1
python ×1
python-3.x ×1
regex ×1