You want to give a limit to the number of fields to split. In your case you want to split on whitespace and limit to 2 fields (discarding the whitespace).
In reply to Re: can split() use a regex?
by Fletch
in thread can split() use a regex?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |