📌  相关文章
📜  如何在python代码示例中拆分并保持分隔符在同一行

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

代码示例1
#split and keep the dlimeters at the end of the line.
#Ex, using the '.'  '?'  '!' as delimeters.

re.split('(?<=!)|(?<=\.)|(?<=\?)', text)