html - Replace text inside each line in Notepad++ -
i have this:
...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...
i want this:
...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...
more precisely, need replace "text" value of data-src
attribute value in src
attribute, each line.
find (.*?data-src=")text(.*?src=")(.*?)(".*)
replace $1$3$2$3$4
Comments
Post a Comment