nwkcmk has asked for the wisdom of the Perl Monks concerning the following question:
How do you split the following scalar using regular expression into array by pattern "command" but preserve the word "command" in each elements in the array?command = adb asd 2t525 command=adfaf adsgadg asd
best regards
kevin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split but preserve the matching pattern
by artist (Parson) on Feb 25, 2005 at 05:42 UTC | |
|
Re: split but preserve the matching pattern
by bobf (Monsignor) on Feb 25, 2005 at 05:48 UTC | |
|
Re: split but preserve the matching pattern
by gopalr (Priest) on Feb 25, 2005 at 06:28 UTC | |
|
Re: split but preserve the matching pattern
by friedo (Prior) on Feb 25, 2005 at 05:45 UTC | |
|
Re: split but preserve the matching pattern
by nwkcmk (Sexton) on Feb 25, 2005 at 06:32 UTC |