Cool - that works now. It seems that cr &amp; lf characters are being lost too. How do I preserve these?<br><br>I am using:<br><br>Markup('showto', '&lt;_begin', '/\\(:showto(.*?):\\)(.*?)(\\(:showto:\\))/s', <br>&quot;(:if auth $1:)'''[''Only Visible to $1:'']''' [[&amp;lt;&amp;lt;]] '''{'''[[&amp;lt;&amp;lt;]]$2'''}'''(:if:)&quot;);
<br><br>It sucessfully brings in multiple lines, but strips the line breaks. I've tried various preg replaces (looking for \r\n, etc), but I'm actually acting blindly because I don't know what is in the text to begin with. 
<br><br>regards,<br><br><div><span class="gmail_quote">On 4/10/06, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Apr 10, 2006 at 12:52:42PM +0100, Octocias wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;I was inserting some useful markup elsewhere in code and found the order<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;issue cropping up again.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;All this test markup would do is insert wiki code '[[&lt;&lt;]]' ... but it
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;won't! It translates it as a LINK to '&lt;&lt;'<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Markup('breakline', '&lt;_begin', '/\\(:breakline:\\)/', PSS(&quot;[[&lt;&lt;]]&quot;));<br><br>... because less-than signs ('&lt;') are encoded as &quot;&amp;lt;&quot;.
<br><br>Try:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Markup('breakline', '&lt;[[&lt;&lt;]]', '/\\(:breakline:\\)/', '[[&amp;lt;&amp;lt;]]');<br><br>Pm<br><br></blockquote></div><br><br clear="all"><br>-- <br>Octocias<br><a href="http://www.octocias.com">
http://www.octocias.com</a>