in reply to ASCII in regex

Your question is not quite clear to me, but it could be done via:
s/\n/<br>/g;