in reply to another split question
How to RTFMIf the PATTERN contains parentheses, additional list eleme +nts are created from each matching substring in the delimiter. split(/([,-])/, "1-10,20", 3); produces the list value (1, '-', 10, ',', 20)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: another split question
by blazar (Canon) on Sep 05, 2005 at 13:24 UTC | |
|
How to LTFM...
by polettix (Vicar) on Sep 05, 2005 at 12:45 UTC |