<?xml version="1.0" encoding="windows-1252"?>
<node id="443370" title="Re: trim leading &amp; trailing whitespace" created="2005-03-30 03:22:40" updated="2005-06-06 11:36:21">
<type id="11">
note</type>
<author id="109358">
thinker</author>
<data>
<field name="doctext">
&lt;p&gt;If you want to trim the leading and trailing whitespace from &lt;b&gt;every&lt;/b&gt; line in a multiline string, you can use&lt;/p&gt;
&lt;p&gt;&lt;code&gt;s/^\s*(.*?)\s*$/$1/gm&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;cheers&lt;/p&gt;
&lt;p&gt;thinker&lt;/p&gt;</field>
<field name="root_node">
443363</field>
<field name="parent_node">
443363</field>
</data>
</node>
