wasabi3689
asked on
How to remove unneeded words from Notepad?
Again, I have a notepad++ file with many line, I want to do some cleanup to the file. I want to remove all the words before "ConvertWordToPDF" for each line.
How do I program it by find and replace function from Notepad++. For example,
I have this
wewqewqrwerwerwerewrwerew |ConvertWordToPDF|342423sd adas
sdawdwqdqwqwdqwdqwdqwdq |ConvertWordToPDF|hne33333 2423
34324fsdfsdfsdfdsfdsfdfdsf ds33 |ConvertWordToPDF|hne39993 2423
....
etc
Output I want
342423sdadas.doc
hne333332423.doc
hne399932423.doc
....
etc
How to do that?
How do I program it by find and replace function from Notepad++. For example,
I have this
wewqewqrwerwerwerewrwerew |ConvertWordToPDF|342423sd
sdawdwqdqwqwdqwdqwdqwdq |ConvertWordToPDF|hne33333
34324fsdfsdfsdfdsfdsfdfdsf
....
etc
Output I want
342423sdadas.doc
hne333332423.doc
hne399932423.doc
....
etc
How to do that?
ASKER
How to add .doc for each in the end?
Replace with: \2.doc
ASKER
how to remove all linesas well?
ASKER
never mind, I figure out ^[ \t]*$\r?\n
ASKER
NVIT, can you explain a bit more your solution (^.+\|.+\|)(.+), what each symbol represents?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Find what: (^.+\|.+\|)(.+)
Replace with: \2