Update: this strips leading characters if any \S+ "word" is longer than 12.$msg = "This is a test message"; @lines = $msg =~ /(?>\s*)(.{0,11}\S)(?!\S)/g;
In reply to Re: Splitting a string into words
by ysth
in thread Splitting a string into words
by webchalkboard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |