举例来说:一个字符串:“This is easy,It is so easy!”;我要把两个“easy”都提取出来。需要获得的是这两个easy开始的位置,用Matcher.start()只能取得第一个的位置。求高人上代码。
虽然不是我要的答案,但是我自己解决了~~~