[ale] SED question
Josh Freeman
josh.freeman at arch.gatech.edu
Tue Mar 19 13:38:17 EST 2002
Hello ALE'ers
I've got to batch process some HTML files, and I need to make
substitutions of the form
<h2> => foo
</h2> => bar
The expression:
sed s/\<[hH]2\>/foo/g
takes care of the first one, but I have yet to get an expression to work
for the second case, I would expect:
sed s/\<\\[hH]2\>/bar/g to return bar, but it returns <\h2> instead.
Any ideas. I assume that I am not escaping the '\' correctly, but I
haven't an idea how to do it.
Thanks,
Josh
--
Josh Freeman
Technical Manager
Center for Assistive Technology and Environmental Access
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list