How do I catch a block of text(several lines) starting with X: on a new line and ending with an empty line. I tried with this Markup('X:', '<split', '/\n(X:.*?)\n\n/se', "PreserveAbc(PSS('$1'))"); but keep failing getting the line delimiting the block, even though '\n(X:.*?)\n\n/s' works fine in my regex tutor program. thanks for any help! Hans