in reply to Regular expression help required

Do you have your output in a string already? Then do following:

s/:.*/:/g; s/\n\[/ [/g