<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;blockquote&gt;&lt;p&gt;&lt;a href=&quot;#posts-8710&quot;&gt;znerp wrote&lt;/a&gt;:&lt;/p&gt;&lt;p&gt;If you perform a search on yahoo.com (eg. &lt;a href=&quot;http://search.yahoo.com/search?p=greasemonkey&amp;amp;fr=yfp-t-501&amp;amp;toggle=1&amp;amp;cop=mss&amp;amp;ei=UTF-8&amp;amp;fp_ip=UK&amp;amp;vc=&quot;&gt;a search for greasemonkey&lt;/a&gt;), notice how the url at the bottom of each result (in green) has the host in bold. What &lt;code&gt;/b[. = &quot;en.wikipedia.org&quot;]&lt;/code&gt; matches is a bold tag with textcontent equal to &quot;&lt;code&gt;en.wikipedia.org&lt;/code&gt;&quot;. I believe I could have used &lt;code&gt;/b[text() = &quot;en.wikipedia.org&quot;]&lt;/code&gt; instead.&lt;/p&gt;
  &lt;/blockquote&gt;

Ok, thanks. So &lt;code&gt;.&lt;/code&gt; seems equal to &lt;code&gt;text()&lt;/code&gt;? How would I match href attributes, or src attributes? And actually use a regular expression?</body>
  <body-html>&lt;blockquote&gt;&lt;p&gt;&lt;a href=&quot;#posts-8710&quot;&gt;znerp wrote&lt;/a&gt;:&lt;/p&gt;&lt;p&gt;If you perform a search on yahoo.com (eg. &lt;a href=&quot;http://search.yahoo.com/search?p=greasemonkey&amp;amp;amp;fr=yfp-t-501&amp;amp;amp;toggle=1&amp;amp;amp;cop=mss&amp;amp;amp;ei=UTF-8&amp;amp;amp;fp_ip=UK&amp;amp;amp;vc=&quot;&gt;a search for greasemonkey&lt;/a&gt;), notice how the url at the bottom of each result (in green) has the host in bold. What &lt;code&gt;/b[. = &quot;en.wikipedia.org&quot;]&lt;/code&gt; matches is a bold tag with textcontent equal to &quot;&lt;code&gt;en.wikipedia.org&lt;/code&gt;&quot;. I believe I could have used &lt;code&gt;/b[text() = &quot;en.wikipedia.org&quot;]&lt;/code&gt; instead.&lt;/p&gt;&lt;/blockquote&gt;

Ok, thanks. So &lt;code&gt;.&lt;/code&gt; seems equal to &lt;code&gt;text()&lt;/code&gt;? How would I match href attributes, or src attributes? And actually use a regular expression?</body-html>
  <created-at type="datetime">2008-04-30T08:09:33Z</created-at>
  <forumable-id type="integer">2</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">8740</id>
  <topic-id type="integer">2256</topic-id>
  <updated-at type="datetime">2008-04-30T08:09:54Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">33073</user-id>
</post>
