On 10/12/05, <b class="gmail_sendername">Tim Wilson</b> <<a href="mailto:tim_linux@wilson-home.com">tim_linux@wilson-home.com</a>> 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. Try this:<br><br>sed -e 's/<st1.*>\(.*\)<\/st1.*>/\1/' <foo.xml >foo.txt</blockquote><div><br>
Or perl...<br>
$string =~ s/<st1(.*)>(.*)<st1(.*)>/$2/sm;<br>
</div></div>