$_ = "X1aaX2bbX3heeX4...X5loveU"; @match = split (/X\d/,$_);