有人可以帮助我实现一个将字符串拆分为字符串数组并以句点(。)分隔的函数吗?
所以:"This is sentence one. This is sentence two."变成:["This is sentence one", "This is sentence two"]
"This is sentence one. This is sentence two."
["This is sentence one", "This is sentence two"]
但是,如果句点在两个数字之间,例如:(2.5),那么不要分割?
功能Data.List.Split.splitOn是完成任务的一种可能方法。
Data.List.Split.splitOn