in reply to Converting carriage returns to HTML breaks
I think that should be [\n\r]{1,2} and '<br/>' and whether it will actually work is another question.