note
themage
Hi [bwgoudey],
<br><br>
I think you may be looking for this:
<c>
$a=q{<tag ref=1>Start<tag ref=2>and more</tag>and end</tag>};
@l=split qr{(</?tag[^>]*>)}, $a;
print join "\n", @l;
</c>
The main trick is to use <c>()</c> inside the regex used in split to capture the delimiters.
<br><br>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-273763">
TheMage<br>
[http://magick-source.net|Magick Source]<br>
[http://www.talking-web.org|Talking Web]
</div></div>
592032
592032