Well off the top of my head...
while ( length($string) > 45 ) { $_ = $string; /\s.*$/ $string = $`; }
... but I'm sure there's even cleaner ways to do it. (Yeah I know Death to dot star and all but I did say off the top of my head :)
coreolynIn reply to Re: regexp word break help
by coreolyn
in thread regexp word break help
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |