Reputation: 11
Using notepad++ I can't get it to work
234234
wqeqweqwe
234234
wqeqweqwe
234234
wqeqweqwe
Should be like
234234:wqeqweqwe
234234:wqeqweqwe
234234:wqeqweqwe
but many more
Upvotes: 1
Views: 1445
Reputation: 626893
You can use the following regex-based replacement:
Find what: ^(.*)\R(.*)
Replace With: $1:$2
The ^
matches the line start, (.*)
matches and captures the whole line (Group 1), \R
matches any linebreak sequence (\r\n
, \r
or \n
), and then the next line is captured into Group 2.
Then the backreferences $1
and $2
restore the lines contents and a colon is inserted in between them.
See the screenshot:
Upvotes: 3