nasty string extraction problem

Hello, if I have a file containing a chunk of HTML and I want to extract
always the string beginning XXX Sex - Free Porn Videos at XXX.com that ends just before "> (i.e. and including the bit BqqtJpfZElQ&hl will change randomly)

Any ideas???

# cat randomfeature.html
<object width="160" height="110"><param name="movie" value="XXX Sex - Free Porn Videos at XXX.com"></param><param name="allowFullScreen" value="true"></param><embed src="XXX Sex - Free Porn Videos at XXX.com" type="application/x-shockwave-flash" allowfullscreen="true" width="250" height="224"></embed></object>

Many thanks

Kevin

tr -s ' ' '\n' < randomfeature.html |
  sed -n '/value="http/p' |
    cut -d\" -f2

With Perl:

perl -nle'print/(http.*?)">/' randomfeature.html

And if you want to use XSLT ...

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />

<xsl:template match="param">
       <xsl:value-of disable-output-escaping="yes" select="@value" />
</xsl:template>

</xsl:stylesheet>