[pmwiki-devel] regex in markup question

Hans design5 at softflow.co.uk
Sat May 22 13:38:41 CDT 2010


Saturday, May 22, 2010, 7:28:20 PM, DaveG wrote:

>>   Markup('X:abc', '>[=','/\n(X:\\s*\\d+\\s*\n.*?)\n<:vspace>/se',
>>      "PreserveAbcText(PSS('$1'))");

> Just a note here, that tunes on the very first list might not get 
> captured by this regex, as there would not be a preceding newline.

You are right! If I leave out the first \n, how do I makesure that
X: is at the beginning of a line?

Hans




More information about the pmwiki-devel mailing list