in reply to trouble regexing the next line

i am a bit slow at analysing existing code.
Could you please post some sample input and expected output?

Replies are listed 'Best First'.