Copy marked text sections
Dumpling Dumpling last edited by
I need to copy text sections
How can I do that?
[https://postimg.org/image/yxg1sjwlh/](need to copy all red marks)
Scott Sumner last edited by
The best method I’ve found is by using a Pythonscript. See this thread: https://notepad-plus-plus.org/community/topic/12710/marked-text-manipulation
Dumpling Dumpling last edited by Dumpling Dumpling
Thanks, it works!
guy038 last edited by
Hello @dumpling-dumpling and All,
An alternative to the Scott’s Python script could be a regex S/R, built that way :
In your case, the correct regex S/R would be :
First, copy your file in a new tab
Open the Replace dialog (
Ctrl + H)
Enter the Search and Replace regexex
Click on the
Et voilà !
So, with the given text, below :
<name = 'A' level = '1'> <name = 'b' level = '2'> <name = 'C' level = '3'> <name = 'D' level = '4'> <name = 'E' level = '5'>
You would obtain :
'A' '1' 'b' '2' 'C' '3' 'D' '4' 'E' '5'
Nick Tsangaris last edited by
Alan Kilborn last edited by