By the time PmWiki reaches the "block" phase of Markup rules, the text has already been broken into individual lines. If you want to match a pattern against multiple lines of input, it needs to be in the "fulltext" phase, or at least "<split".
Pm On Wed, Nov 13, 2013 at 09:39:48PM +0000, Brian Tibbels wrote: > I am trying to create a set of markups which will include Bootstrap > components - I thought I would start with an easy one and fell at the first > hurdle :(. I have looked at all the sample markups and some were obvious > and others were rather hard to follow as regular expressions are not my > strong point. Could someone please tell me what is wrong with this though... > > Markup( "panel", > "block", > "/^\\(:panel-default:\\)(.*?)^\\(:panelbody:\\)(.*?)^\\(:panelend:\\)/sie", > "<div class='panel panel-default'> > <div class='panel-heading'> > <h3 class='panel-title'>$1</h3> > </div> > <div class='panel-body'> > $2 > </div> > </div>" > ); > > > I was hoping to transform this sort of thing. > > (:panel-default:) > My Title > (:panelbody:) > Body text > (:panelend:) > > also if this could be transformed even better > > (:panel-default:) > My Table > (:panelbody:) > || class=table > || Col-1 || Col-2 || Col-3 || > (:panelend:) > > > ---- > Best wishes > Brian > _______________________________________________ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users