merging lines

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jan-01
Posts: 19
Joined: Fri Apr 27, 2007 9:40 am

merging lines

Post 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
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
Post Reply