目前我有这个正则表达式将一个段落分成句子:/[^\.!\?]+[\.!\?]+/g
. 但问题是我的段落不仅仅是文本段落。我有这样的链接:
This is text and here is a <value="link" href="http://link.com?param=test"> which directs to another page. So I don't want to split at the anything inside the link above.
我想将其拆分为一个数组,例如:
['This is text and here is a <value="link" href="http://link.com?param=test"> which directs to another page.', 'So I don't want to split at the anything inside the link above.']
什么正则表达式会这样做?