batch parenthesis matching
Erez D
erez0001 at gmail.com
Thu Aug 6 18:55:16 IDT 2009
hi
i have an html file with few different instances of:
<span class="myclass">
... some html, e.g. <B> blah blah <a href=....> </a> </b>
</span>
i want to remove theses instances.
( the html inside the <span> varies between instances, and there is a non
constant number of instances)
i thought of replacing '<[^/]' (i.e. '<' folowed by somthing else then '/' )
with '{' and '</' with '}' and then doing parenthesis matching
however i need it done automatically in batch. (i can do parenthesis
matching in vi. can i do this in sed ?)
thanks,
erez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090806/d7cd5ad5/attachment.html>
More information about the Linux-il
mailing list