(Directly inspired by https://macromates.com/blog/2006/wrapping-text-with-regular-expressions/ )
This version only splits between words, so lines may wrap earlier than the given maximum.
Passes existing linefeed through "as‐is", so probably not useful for reflowing already wrapped text