in reply to split/matching/regex question
I would like to make use of the string that was matched by the regex in the split codeThen capture it (note the parens below):
Now @entries will be interlaced with your delimiter string.my @entries = split /(<!--NEWENTRY\d{6}-->)/, $longstring
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: split/matching/regex question
by Art_XIV (Hermit) on Apr 14, 2004 at 20:23 UTC |