I want to replace all spaces with certain words with the help of regex
from
<h3>Chinese Fan Palms</h3>
to
<h3>ChinesehoneyFanhoneyPalms</h3>
My Replace word is honey
CodePudding user response:
I hope this is what you are looking for,
Find:(^<h3>|\G).*?\K
note! After \K
there is a single space ...
Replace with:Honey
This regex only effects if the line starts with <h3>
....