ie. Split on the zero-width bit between a non-space on the left, and a space on the right, without capturing either.split /(?<!_)(?=_)/,$string; # Using _ instead of space like your exa +mple.
In reply to Re: Splitting without losing
by Paladin
in thread Splitting without losing
by anjiro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |