title: re:test() XPath to HtmlAgilityPack (get all p tags with matched regex internal)
body: <p>I want all <code>&lt;p&gt;=.+=&lt;/p&gt;</code> tags.  The Regex works on its own, without the <code>&lt;p&gt;</code> tags.</p>
  
  <p>Here's my XPath: <code>"//p[re:test(.,'^=.+=$', 'i')]"</code></p>
  
  <p>But I'm getting an exception when I plug it into, </p>
  
  <pre><code>HtmlNodeCollection pNodes = htmlDoc.DocumentNode.SelectNodes("//p[re:test(.,'^=.+=$', 'i')]");
  </code></pre>
  
  <p>The exception is: </p>
  
  <blockquote>
    <p>Namespace Manager or XsltContext
    needed. This query has a prefix,
    variable, or user-defined function.</p>
  </blockquote>
  
  <p>Edit: The Html is generated by FCKEditor and has no namespace defined.  Do I need to set something for this to work?</p>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;p&gt;&lt;style type="text/css"&gt;
  h2 a { color: black; }&lt;/style&gt;&lt;/p&gt;
  &lt;p&gt;----&lt;/p&gt;
  &lt;h2&gt;test &lt;a href="http://searisen.com"&gt;link&lt;/a&gt;&lt;/h2&gt;
  &lt;p&gt;== Heading 2 ==&lt;/p&gt;
  &lt;p&gt;----&lt;/p&gt;
  &lt;p&gt;=== Heading [http://searisen.com SeaRisen.com] ===&lt;/p&gt;
  </code></pre>