📜  正则表达式查找所有句子python代码示例

📅  最后修改于: 2022-03-11 14:45:52.543000             🧑  作者: Mango

代码示例1
text = "This is a good sentence. This is another good 1! thanks"

sentences = re.findall(r"[A-Z].*?(\.\s|\?\s|\!\s)", text)