我正在尋找一個正則表達式模式,我想在我的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.
請幫我找到了這樣的正則表達式。
http://xkcd.com/208/ – 2012-02-04 18:31:20
失敗'xyxx' – ugoren 2012-02-05 10:07:41
@ugoren xyxx不包含3個連續的輔音 – 2012-02-05 10:52:52