其他論壇成員, 我正在使用NotePad ++的最新版本,並且我需要關於RegEx的幫助,它將按照我指定的順序搜索多個標記的單詞。下面是我準備了一個例子:正則表達式按指定的順序查找多個標籤
<first> <second> <third>
- 代表了我所需要的正則表達式來找到它們的順序三個標籤
<second> <first> <third>
- 這些標籤不是我需要的順序,因此我想要的RegEx在搜索中忽略它們。
<third> <second> <first> <second> <second>
- 這些標籤不是我需要的順序,也包含重複標籤我不需要在搜索中包含RegEx。
我已經嘗試過這個表達式:(first | second | third)
然而,似乎給我額外的數據,我不想。任何幫助將不勝感激。
爲什麼不簡單'(第一第二第三)'?確保順序,確保所有三個存在... – knolleary
這不是有效的XML。你的意思是' '或'這裏匹配 '? –
Sobrique