字符串中有2句,但有4个‘.’,如何用正则捕获?
"Ceramics are not typically formed from the melt. This is because most ceramics will crack extensively (i.e. form a powder) upon cooling from the liquid state."
#include <array.au3>
$str = "Ceramics are not typically formed from the melt. This is because most ceramics will crack extensively (i.e. form a powder) upon cooling from the liquid state."
$arr = StringRegExp($str,"(?:[^()]|(?:\(.+\)))+?\.",3)
_ArrayDisplay($arr)
谢谢! 要的就是这个结果。
另外,当字符串改为
Ceramics are not typically formed from the melt. This is because most ceramics will crack extensively, i.e. form a powder, upon cooling from the liquid state.
且不用","替换表达式中的"()"时,如何得到同样的结果