Second, split never returns undefined fields. Fields can be empty, but they are still defined. You want to check on length here.
Third, this loses trailing empty fields. You want to give split a third, negative, argument.
Abigail
In reply to Re: Broken regexp
by Abigail-II
in thread Broken regexp
by ColtsFoot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |