Force Close on Regular Expression !match

前端 未结 3 526
借酒劲吻你
借酒劲吻你 2021-01-05 15:15

I am having a problem with the following bit of code. I am trying to match a string. When I have a match everything works perfectly. When it does not find a match it thro

3条回答
  •  情话喂你
    2021-01-05 15:48

    This is behaving as documented. You are welcome to catch the exception rather than checking for the empty string.

提交回复
热议问题