Finding substring in RegEx Java

后端 未结 5 529
北海茫月
北海茫月 2021-01-24 02:45

Hello I have a question about RegEx. I am currently trying to find a way to grab a substring of any letter followed by any two numbers such as: d09.

I came up with the R

5条回答
  •  悲哀的现实
    2021-01-24 03:14

    It doesn't match because ^ and $ delimite the start and the end of the string. If you want it to be anywhere, remove that and you will succed.

提交回复
热议问题