2016-03-29 34 views

回答

3

使用正則表達式選項Alt鍵 + [R

查找內容:

-\d+\.jpeg 

替換爲:

.jpg 

解釋:

-    find the - character followed by 
\d    any digit 
+    one or more (digits) 
\.    followed by a . 
jpeg   and the word jpeg 
1

我看你也正在改變文件的擴展名。

正則表達式:-\d+\.jpeg

更換做到:替換.jpg

Regex101 Demo

1

只需使用正則表達式:-\d*.jpeg 它會找到所有的 「-1.jpeg」 或「-1868.jpeg」並替換爲「.jpg」。

演示:https://regex101.com/r/wY2tB6/1

相關問題