【发布时间】:2012-02-26 22:10:43
【问题描述】:
我正在寻找我想在我的 php 名称生成器脚本中使用的正则表达式模式。
它应该检测字符串是否包含三个连续的辅音。 但是如果三个连续的辅音中的两个连续的辅音相同,它应该不会检测到字符串。
例子:
"hello" -> False, because there aren't 3 consecutive consonants.
"matching" -> True, because there are 3 consecutive consonants.
"apple" -> False, although there are 3 consecutive consonants, because two consecutive of them are the same.
请帮我找到这样的正则表达式模式。
【问题讨论】: