Friday, 15 April 2011

In notepad++, replace the defined line break with a symbol -



In notepad++, replace the defined line break with a symbol -

for example, have text this:

驕傲淫亂嫉妒 0108 我看到你的靈魂和面容起了變化 0109 因為你心中的那只巨獸正 張牙舞爪的爬出來 0110 你看到人心潛藏的罪惡 0111 卻看不到我心中的痛苦 0112

i bring together 2 continous lines(there's no number beingness between) "|", replace numbers blanks. illustration above, result is:

驕傲淫亂嫉妒 我看到你的靈魂和面容起了變化 因為你心中的那只巨獸正|張牙舞爪的爬出來 你看到人心潛藏的罪惡 卻看不到我心中的痛苦

i not have much knowledge notepad++. help me? thanks.

if understanding problem correctly simple regular look in find & replace solve problem correctly.

your find string [0-9]+ , replace string should empty

after above replace, search look (.+)\r\n(.+) , replace \1|\2. help bring together continuous lines.

notepad++

No comments:

Post a Comment