> 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?
I think you can write "/(?:\n|^)(X: ... BTW, good tip about the <:vspace>! JR _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel