I would like to remove following tag from HTML including its constantly varying contents:
<span class="the_class_name">li4tuq734g23r74r7Whatever</span>
A following BASH script
.... | sed -e :a -re 's/<span class="the_class_name"/>.*</span>//g' > "$NewFile"
ends with error
sed: -e expression #2, char XX: unknown option to `s'
I tried to escape quotes, slashes and "less than" symbols in various combinations and still get this error.