regexeditornotepad++

Only keep this String in Notepad++ (Regex)


I have again a Problem.
Have a list like

Ham$$Keepit=Keepit€ That was just Awesome #+üä!
Ber$$Dontremove=dontReMove€ delicious

Want to keep only between the $$ and €.
So the result should be

Keepit=Keepit
Dontremove=dontReMove

Thanks for your help again !


Solution

  • Try this(v5.9.3):

    1. Open Replace dialog using Ctrl + H and make sure Regular Expression is checked in the Search mode panel.
    2. Type (.*)$$(.*)€(.*) into the Find what textbox
    3. Type \2 into the Replace with textbox
    4. Press Replace All and Voila!!! you will see the text you want.