0

My chat log has unnecessarily added a line break between timestamp and usernames / messages. Not sure if this is to be fixed in "Find & Replace" or "Line Operations".

Basically I want this:

16:53

Admin: I mean ghosts are better at tasks

16:54

Admin: nah

16:56

Admin: Michelle hey!

To look something like this:

16:53 Admin: I mean ghosts are better at tasks

16:54 Admin: nah

16:56 Admin: Michelle hey!

Thanks in advance!

2
  • so there's a blank line between all lines as well? Commented Sep 6, 2023 at 6:28
  • no the Q&A added the space between the logs automatically. I wasn't able to get rid of them Commented Sep 6, 2023 at 7:22

1 Answer 1

1

You may want to use Replace and regular Expression in combination. In case all lines start in front without spaces you'd go through following steps:

  • Ctrl+H
  • Find what: (\d{2}:\d{2})\R\R
  • Replace with: \1
  • Tick the Wrap around option
  • Search mode: Regular expression
  • Click on Replace All (at your own risk)

Please note the space at the end of \1 .

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here

1
  • THANK YOU!!!! That worked great. SuperUser added the blank lines between the timestamps automatically when pasting those into my question. I removed the additonal "\R" at the end and your script worked perfectly!! Commented Sep 6, 2023 at 7:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .