title: How to use the rails match method with a string?
body: <p>Is there a way to use the rails <code>match</code> method with a simple string, rather than a regular expression?
  I'm trying to match a url as such</p>
  
  <pre><code>sometext.match('http://www.example.com')
  </code></pre>
  
  <p>The problem is, this is stil getting evaluated as a regular expression, so I have to escape all the special characters for this to work properly, as such:</p>
  
  <pre><code>sometext.match('http:\/\/www.example\.com\?foo=bar')
  </code></pre>
  
  <p>If there's no way to match just a string, is there a way to escape it automatically for regular expressions?</p>
  
  <p>Thanks!</p>