Page 1 of 1

merging lines

Posted: Wed Apr 25, 2012 12:52 pm
by jan-01
Hello,

I wonder, is it possible to merge lines like here under in textpad
I have ca 1000 numbers with an text, but I the need the text complete after the number, on one line


13. tekstteksttekstteksttekstteksttekstteksttekst
tekstteksttekstteksttekst
124. tekstteksttekstteksttekstteksttekstteksttekst
teksttekstteksttekstteksttekstteksttekst


13. teksttekstteksttekstteksttekstteksttekstteksttekstteksttekstteksttekst
124. testkstteksttekstteksttekstteksttekstteksttekstteksttekstt

thanks in advance
Jan

Posted: Wed Apr 25, 2012 2:26 pm
by ben_josephs
If the continuation lines always begin with a non-digit, the following should do it.

Use "Posix" regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Search | Replace... (<F8>):
Find what: \n([^0-9])
Replace with: \1

[X] Regular expression

Replace All