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
In reply to Re: split/matching/regex question
by Roy Johnson
in thread split/matching/regex question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |