Hello i’m trying with notepad ++ to find in SRC of tag special characters + and replace with space with regular expression.
For example src=”www.miosito.it/image/la+sagra+della+porchetta.jpg”
I want to replace each + with space with regular expression so: src=”www.miosito.it/image/la sagra della porchetta.jpg”.
As per my original comment…
See regex in use here
Alternatively, you can use
(?:\bsrc="|\G(?!\A)).*?\K\+, but the other regex gives better performance.
src="www.miosito.it/image/la sagra della porchetta.jpg"
(?:\bsrc="|\G(?!\A)) Match either of the following
\b Assert position as a word boundary
src=" Match this literally
\G(?!\A) Assert position at the end of the previous match
[^+]* Match any character except
+ any number of times. The alternative uses
.*? which matches any character any number of times, but as few as possible
\K Resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match