You could use s/(
)+/
/
, but if you are trying to use regex on HTML you are likely doing something wrong.
Edit: A slightly more robust pattern you could use if you have mixed breaks:
/(
)+/
This will catch
and
as well, which might be useful in certain cases.