我想匹配重復的單詞,在這個例子中是GHL_AutoMatchFaulted 在這個例子中,有 5 次出現,我想匹配所有 5 次,否則它將不匹配
GHL_AutoMatchFaulted
GHL_AutoMatchFaulted
GHL_AutoMatchFaulted
GHL_AutoMatchFaulted
GHL_AutoMatchFaulted
這可能嗎?
任何幫助將非常感激。謝謝。
幾乎嘗試了論壇中的所有內容,但沒有任何效果。
uj5u.com熱心網友回復:
這個怎么樣: ?
(GHL_AutoMatchFaulted\s?\n?){5}
- 尋找關鍵字
GHL_AutoMatchFaulted - 有一個可選的空間
\s? - 和一個可選的回車
\n? - 恰好 5 次
{5}
根據
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/533760.html
標籤:正则表达式正则表达式
