How can i find texts inside a html tag using sed?

How can i find texts inside a html tag using sed?
Html texts:

What i tried:

cat infile | sed -e 's/\(<kbd*\)\(.*\)\(kbd>\)/\2/

Expected result like this:

sed -i -e 's/@colophon/@@colophon/' \        -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
sed -n 's!.*<kbd class="command">\(.*\)</kbd>.*!\1!p' infile

--ahamed

Doesn't print anything.

[root@maximus]  cat infile
<p>Fix a couple of syntax errors that prevent the documentation from building with Texinfo-5.1: </p> <pre class="userinput"> <kbd class="command">sed -i -e
 's/@colophon/@@colophon/' \ -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo</kbd> </pre> <p> 
The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:
</p>

[root@maximus]  sed -n 's!.*<kbd class="command">\(.*\)</kbd>.*!\1!p' f
sed -i -e 's/@colophon/@@colophon/' \ -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo

which is your OS?

--ahamed

Debian wheezy

You may try awk

$ awk 'gsub(/.*<kbd .*\">|<\/kbd>.*/,x)' file

sed -i -e 's/@colophon/@@colophon/' \ -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo