sed html tags
Paul A. Procacci
pprocacci at datapipe.com
Tue Aug 26 01:05:26 UTC 2008
> Hi, I have the string
> <span xxxx> 111 </span> 2222 <span yyyy> 3333 </span>
> And i wish to use sed to strip *only* the "<span xxxx>" tag and its
> contents... is this possible ? I'm trying this expression, but it
> doesn't work...
> sed 's/<span xxxx[^\(</span>\)]+<\/span>//g' file
> is there anything like it ?
> I would like to obtain
> I hope someone can help,
> thank you,
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
sed -E 's/<\/?span[^>]*>//g'
Myabe that's what you want?
More information about the freebsd-questions