Its much easier to use split:
$_ = "X1aaX2bbX3heeX4...X5loveU"; @match = split (/X\d/,$_); [download]
In reply to Re: use regex to split sentence by jryan in thread use regex to split sentence by dyno