Escaping ampersand in the regexp

后端 未结 0 1155
一整个雨季
一整个雨季 2021-01-13 20:49

I have to match words which are ending with ampersand character. I came up with this regex: \\w*\\&\\b. It works correctly for all letters, for example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题