Hi flowdy,
You're right that my second regex didn't operate like the OP's, but if you write /(.{1,$len}\W?)/gm, then that may split in the middle of a word, like your suggestion and unlike the OP's regex. I've updated my node.
Thanks,
-- Hauke D
In reply to Re^3: Split string using regex on \n or max line length
by haukex
in thread Split string using regex on \n or max line length
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |