Command line tool that wraps lines according to regex