[pmwiki-devel] regex in markup question

Hans design5 at softflow.co.uk
Fri May 21 03:06:30 CDT 2010


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




More information about the pmwiki-devel mailing list