On 10/12/05, <b class="gmail_sendername">Tim Wilson</b> &lt;<a href="mailto:tim_linux@wilson-home.com">tim_linux@wilson-home.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry, don't know PHP, but I'm becoming more educated on regular<br>expressions.&nbsp;&nbsp;Try this:<br><br>sed -e 's/&lt;st1.*&gt;\(.*\)&lt;\/st1.*&gt;/\1/' &lt;foo.xml &gt;foo.txt</blockquote><div><br>
Or&nbsp; perl...<br>
$string&nbsp; =~ s/&lt;st1(.*)&gt;(.*)&lt;st1(.*)&gt;/$2/sm;<br>
</div></div>