If the PATTERN contains parentheses, additional list elements are created from each matching substring in the delimiter.produces the list value1. split(/([,-])/, "1-10,20", 3);1. (1, '-', 10, ',', 20)
In reply to Re: Possible to use "split", but save the delimiter?
by toolic
in thread Possible to use "split", but save the delimiter?
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |