title: Regex for string that contains a '='
body: <p>I've tried to create a regular expression that validates a string and checks if it has a <code>=</code> character in it.</p>
  
  <p>I also need it to be in brackets like this</p>
  
  <pre><code>(.*)
  </code></pre>
  
  <p>in order to retrieve the value later.</p>
  
  <p>What I tried was</p>
  
  <pre><code>(.*=.*)
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p>How can I match a string that contains a <code>=</code> ?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>This is my regex from my htaccess file:</p>
  
  <pre><code>RewriteRule ^(home|page1|page2|page3|admin)/(.*)/(.*)/(.*=.*) index.php?area=$1&amp;page=$2&amp;content=$3&amp;$4 [L]
  RewriteRule ^(home|page1|page2|page3|admin)/(.*)/(.*) index.php?area=$1&amp;page=$2&amp;content=$3 [L]
  </code></pre>
  
  <p>Examples would be</p>
  
  <p><code>/home/foo/bar</code> and <code>/home/foo/bar/page=2</code></p>
  
  <p>That's what I pretty much want to achieve. Add <code>GET</code> parameters in an eye-candy way. Also, I need to parse if it contains a <code>=</code> character, because there are various depths in the web site such as <code>/foo/page=1</code> and <code>foo/bar/page=1</code></p>