regex to match repeated consonant

后端 未结 6 1772
悲&欢浪女
悲&欢浪女 2021-02-04 03:28

How can I detect with a regex expression if the same consonant is repeated three times or more?

My idea is to match words like tttoo

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 03:49

    The regex from answer higher [b-df-hj-np-tv-z])\1{2,}has a mistake ("y" is fogotten)

    It should be [b-df-hj-np-tv-xz])\1{2,}

提交回复
热议问题