比如说我要匹配1.first2.secondsecond3.third用字符串表示就是1.first\n2.second\nsecond\n3.third\n,怎么匹配成["1.first\n", "2.second\nsecond\n", "3.third\n"]谢谢谢谢
\d.[a-zA-Z\n]+终于想到了!!
split分割然后matches匹配吧
http://tools.jb51.net/regex/create_reg 可以拿走直接用