Invalid escape sequence

后端 未结 3 1424
既然无缘
既然无缘 2021-01-23 21:59

I would like to filter out all words containing 1 number and 3 capital letters with a total length of 4. See my example here: http://gskinner.com/RegExr/?32taa

A         


        
3条回答
  •  情歌与酒
    2021-01-23 22:09

    In Java, you need to escape the backslash with an extra backslash, when representing the pattern in string.

    So, \b should be \\b, and \d should be \\d.

提交回复
热议问题