[Cialug] RegEx
Aaron Porter
atporter at gmail.com
Wed Oct 12 15:14:50 CDT 2005
On 10/12/05, Tim Wilson <tim_linux at wilson-home.com> wrote:
>
> Sorry, don't know PHP, but I'm becoming more educated on regular
> expressions. Try this:
>
> sed -e 's/<st1.*>\(.*\)<\/st1.*>/\1/' <foo.xml >foo.txt
Or perl...
$string =~ s/<st1(.*)>(.*)<st1(.*)>/$2/sm;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20051012/2f6bbb92/attachment.html
More information about the Cialug
mailing list