title: How do I use a variable pattern with preg_match?
body: <p>I don't know if this is enough data to feed off of, but I have</p>
  
  <blockquote>
    <p>preg_match('/SAMPLETEXT/', $bcurl, $cookie1);</p>
  </blockquote>
  
  <p>and I was wondering if I can make it </p>
  
  <blockquote>
    <p>preg_match($newfunction, $bcurl, $cookie1);</p>
  </blockquote>
  
  <p>but when I do, I get this error "Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in".</p>
  
  <p>How can I make it check for my new function, rather than have it check just for "SAMPLETEXT".</p>