我想解析这个字符串内容。
requiredContent='Tigers that breed with lions give birth to hybrids known as "tigons" and "ligers."// In 19th-century Sweden, 380 kids were strangled by their mothers or nurses every year, according to the Swedish Statistical Bureau.'
我把它分开
String[] factsArray = StringUtils.split(requiredContent, "//");
我得到了结果
[Tigers that breed with lions give birth to hybrids known as "tigons" and "ligers.", In 19th-century Sweden, 380 kids were strangled by their mothers or nurses every year, according to the Swedish Statistical Bureau.]
结果factsArray的数组长度应该为2,但它显示的数组长度为4。它正在解析字符串中包含“,”的字符串。这不应该发生,如何解决这个问题???