To make long text at most N characters long but leave last word intact, use .{0,N}\b pattern:
.{0,N}\b
^(.{0,N})\b.*