Replace text in StringBuilder via regex

后端 未结 6 774
旧时难觅i
旧时难觅i 2021-01-19 01:33

I would like to replace some texts in StringBuilder. How to do this?

In this code I got java.lang.StringIndexOutOfBoundsException at line with mat

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 02:05

    Another issue with using StringBuidler.replace() is that that one can't handle capturing groups.

提交回复
热议问题