title: HtmlAgilityPack, using XPath contains method and predicates
body: <p>HtmlAgilityPack, using XPath contains method</p>
  
  <p>I'm using HtmlAgilityPack and i need to know if a class attribute contains a specific word, now i have this page:</p>
  
  <pre><code>&lt;div class="yom-mod yom-art-content "&gt;&lt;div class="bd"&gt;
  &lt;p class="first"&gt; ....................
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm doing this:</p>
  
  <pre><code>HtmlDocument doc2 = ...;
  List&lt;string&gt; paragraphs = doc2.DocumentNode.SelectNodes("//div[@class = 'yom-mod yom-art-content ']//p").Select(paragraphNode =&gt; paragraphNode.InnerHtml).ToList();
  </code></pre>
  
  <p>But it's too much specific that I need is something like this: </p>
  
  <pre><code>List&lt;string&gt; paragraphs = doc2.DocumentNode.SelectNodes("//div[contains(@class, 'yom-art-content']//p").Select(paragraphNode =&gt; paragraphNode.InnerHtml).ToList();
  </code></pre>
  
  <p>But it don't work, please help me..</p>