Regex: match word that ends with “Id”

后端 未结 6 1655
不知归路
不知归路 2020-12-01 05:52

I need help putting together a regex that will match word that ends with \"Id\" with case sensitive match.

6条回答
  •  渐次进展
    2020-12-01 06:32

    Try this regular expression:

    \w*Id\b
    

    \w* allows word characters in front of Id and the \b ensures that Id is at the end of the word (\b is word boundary assertion).

提交回复
热议问题