title: How can I create a nokogiri case insensitive Xpath selector?
body: <p>I'm using nokogiri to select the 'keywords' attribute like this: </p>
  
  <pre><code>puts page.parser.xpath("//meta[@name='keywords']").to_html
  </code></pre>
  
  <p>One of the pages I'm working with has the keywords label with a capital "K" which has motivated me to make the query case insensitive. </p>
  
  <pre><code>&lt;meta name="keywords"&gt; AND &lt;meta name="Keywords"&gt; 
  </code></pre>
  
  <p>So, my question is: What is the best way to make a nokogiri selection case insensitive? </p>
  
  <p><strong>EDIT</strong> Tomalak's suggestion below works great for this specific problem.  I'd like to also use this example to help understand nokogiri better though and have a couple issues that I'm wondering about and have not been successful searching for.  For example, are the regex 'pseudo classes' <a href="http://nokogiri.org/search?q=regex" rel="noreferrer">Nokogiri Docs</a> appropriate for a problem like this?</p>
  
  <p>I'm also curious about the matches?() method in nokogiri.  I have not been able to find any clarification on the method.  Does it have anything to do with the 'matches' concept in XPath 2.0 (and therefore could it be used to solve this problem)?  </p>
  
  <p>Thanks very much.</p>