title: PHP preg_match if pattern is a variable
body: <p>If the pattern is a variable in preg_match, it's correct this syntax for use the delimiters?</p>
  
  <pre><code>if (!preg_match("/{$_SERVER["SERVER_NAME"]}/",$variable)){
    .......
  }
  </code></pre>