I've run into several different situations where I need to implement a "log cleanup" regex. I've had to re-implement a couple times, but the basic variant is this:
The Original
(23:59:59)
Username says:
user inputted text
(00:00:13)
Username
user inputted action
(00:01:42)
Username says:
user inputted text
(00:02:13)
Username says:
user inputted text
I'm looking for a good lookahead/lookbehind regex that converts it to:
(23:59:59) Username says: user inputted text
(00:00:13) Username user inputted action
(00:01:42) Username says: user inputted text
(00:02:13) Username says: user inputted text
What's your angle of attack, and why?