2012-03-12 104 views
-1

我使用記事本+ +正則表達式查找和替換記事本+

正則表達式必須僅適用於href標記與路徑中的「視頻」

我將如何改變這個

href="../Video/000_Movies/assets/001_CCC_Jesus_Film.html" 
href="../Video/000_Movies/assets/003_Hope.html" 
href="../Video/000_Movies/assets/004_CCC_Magdelena.html" 
href="../Books/PDF/419_ROI_One_God_One_Message.pdf" 
href="../Books/PDF/405_MUH_Truth_07.3_Epistles_Wisdom.pdf" 

href="../Video/000_Movies/assets/playlist.html#&panel1-1" 
href="../Video/000_Movies/assets/playlist.html#&panel1-1" 
href="../Video/000_Movies/assets/playlist.html#&panel1-1" 
href="../Books/PDF/419_ROI_One_God_One_Message.pdf" 
href="../Books/PDF/405_MUH_Truth_07.3_Epistles_Wisdom.pdf" 
+1

你想'視頻'或'視頻'他們是不同的事情,你知道! – 2012-03-12 16:08:22

回答

1

您可以更換:

href="\.\./Video/000_Movies/assets/(?:[^"\\]|\\.)*" 

href="../Video/000_Movies/assets/playlist.html#&panel1-1" 
0

搜索:

href="([^"]+)/[^/]+\.html" 

替換爲:

href="\1/playlist.html#&panel1-1" 
0

搜索:(/Video.+/).+\.html

,並通過更換:\1playlist.html#&panel1-1