Q: How to duplicate text with adding line between two certain words?
- 
 Hello, 
 I’am starter and I don’t have a lot experience.I have text file in this pattern: <span style=“color:darkblue”>some thing</span> some words <span style=“color:darkblue”>some thing else</span> another some words <span style=“color:darkblue”>some thing 1</span>another some words 1 what I want to do: 
 Duplcating the word between <span style=“color:darkblue”> and </span>
 then put it between <span class=“bold”> and </span>
 then put the duplicated result in the upper line<span class=“bold”>some thing</span> 
 <span style=“color:darkblue”>some thing</span> some words<span class=“bold”>some thing else</span> 
 <span style=“color:darkblue”>some thing else</span> another some words<span class=“bold”>some thing 1</span> 
 <span style=“color:darkblue”>some thing 1</span>another some words 1That seems a little difficult 
 Is that possible?Thanks in advance 
- 
 What you want, You can do that easly with combinaison of ctrl+c and ctrl+v I don’t know what do you mean by duplicate… 
- 
 select regular expression mode in find/replace dialog. 
 find what should be<span style="color:darkblue">(.+?)</span>
 and replace with would be<span class="bold">$1</span>\r\n$0
- 
 
- 
 welcome to the notepad++ community, @informagenie What you want, You can do that easly with combinaison of ctrl+c and ctrl+v 
 I don’t know what do you mean by duplicate…please do not respond to a thread, if you are not ready to give a valid or useful answer. 
- 
 <span class=“bold”>$1</span>\r\n$0 
 that puts the result in the buttom line like this<span style=“color:darkblue”>some thing</span> some words 
 <span class=“bold”>some thing</span>What I need is like this <span class=“bold”>some thing</span> 
 <span style=“color:darkblue”>some thing</span> some words
- 
 not for me - I get the result like expected. 
- 
 @Ekopalypse Thanks for help 
 It works now,
 I have made a mistake


