Smells like homework.
In reply to Re^3: Word wrapping using a regex. by Anonymous Monk in thread Word wrapping using a regex. by Anonymous Monk