我试图找到一个正则表达式,它将一段文本拆分为.
/?
/!
之后的一个空格,后面跟着一个大写字母。按句点分割句子后跟一个大写字母
"Hello there, my friend. In other words, i.e. what's up, man."
应该拆分:
Hello there, my friend| In other words, i.e. what's up, man|
我可以得到它拆就.
/?
/!
,但我没有运气得到的空间和大写字母的标准。
我想出什么样的主意:
.split("/. \s[A-Z]/")
向我们展示你的正则表达式到目前为止使用。 –
到目前为止你写了哪些正则表达式? – gaganshera
请注意,根据你的要求,最后的'.'不应该分开。 –