在 Notepad++ 中替换每一行内的文本
Replace text inside each line in Notepad++
我有这个:
...something...data-src="TEXT"...something...src="images/BBP/BBP0001/01SMALL.jpg"...something...
...something...data-src="TEXT"...something...src="images/BBP/BBP0001/02SMALL.jpg"...something...
...something...data-src="TEXT"...something...src="images/BBP/BBP0001/03SMALL.jpg"...something...
.
.
.
...something...data-src="TEXT"...something...src="images/BBP/BBP0001/48SMALL.jpg"...something...
我想要这个:
...something...data-src="images/BBP/BBP0001/01SMALL.jpg"...something...src="images/BBP/BBP0001/01SMALL.jpg"...something...
...something...data-src="images/BBP/BBP0001/02SMALL.jpg"...something...src="images/BBP/BBP0001/02SMALL.jpg"...something...
...something...data-src="images/BBP/BBP0001/03SMALL.jpg"...something...src="images/BBP/BBP0001/03SMALL.jpg"...something...
.
.
.
...something...data-src="images/BBP/BBP0001/48SMALL.jpg"...something...src="images/BBP/BBP0001/48SMALL.jpg"...something...
更准确地说,我需要将每一行的 data-src
属性的 "TEXT" 值替换为 src
属性中的值。
找到什么(.*?data-src=")TEXT(.*?src=")(.*?)(".*)
替换为
我有这个:
...something...data-src="TEXT"...something...src="images/BBP/BBP0001/01SMALL.jpg"...something... ...something...data-src="TEXT"...something...src="images/BBP/BBP0001/02SMALL.jpg"...something... ...something...data-src="TEXT"...something...src="images/BBP/BBP0001/03SMALL.jpg"...something... . . . ...something...data-src="TEXT"...something...src="images/BBP/BBP0001/48SMALL.jpg"...something...
我想要这个:
...something...data-src="images/BBP/BBP0001/01SMALL.jpg"...something...src="images/BBP/BBP0001/01SMALL.jpg"...something... ...something...data-src="images/BBP/BBP0001/02SMALL.jpg"...something...src="images/BBP/BBP0001/02SMALL.jpg"...something... ...something...data-src="images/BBP/BBP0001/03SMALL.jpg"...something...src="images/BBP/BBP0001/03SMALL.jpg"...something... . . . ...something...data-src="images/BBP/BBP0001/48SMALL.jpg"...something...src="images/BBP/BBP0001/48SMALL.jpg"...something...
更准确地说,我需要将每一行的 data-src
属性的 "TEXT" 值替换为 src
属性中的值。
找到什么(.*?data-src=")TEXT(.*?src=")(.*?)(".*)
替换为