Regex: match word that ends with “Id”

后端 未结 6 1659
不知归路
不知归路 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:34

    This may do the trick:

    \b\p{L}*Id\b
    

    Where \p{L} matches any (Unicode) letter and \b matches a word boundary.

提交回复
热议问题