For performance reasons I have to use sed to replace some text in a file and I just can't get it working. This is the search query (that works in C#) to be replaced:
<oTimer.*?/>
First off I can't seem to correctly escape the / i am using single quotes with double backslash so
<oTimer.*?\\/>
And then I get to the problem on how to replace this with a empty string.
sed 's/<oTimer.*?\\/g>
doesn't seem to do it.
sed
substitution expression should give you an error message as it does not contain a replacement part.