but finding the whitespace closest to, but less than 76 characters is making me nuts. I feel confident that there must be a regexy way to do it. I've been pouring through Mr. Friedl's great "Mastering Regular Expressions" and feel like I could do this with some lookarounds, but the incantation escapes me.$finaloutput =~ s/(.{76})/$1\r\n/g;
In reply to Matching positions with lookarounds by blahblah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |