title: Trying To Find Forward Slash In Preg_Match
body: <p>I've been searching for hours trying to find a solution to this.  I am trying to determing if the REQUEST URI is legit and break it down from there.</p>
  
  <p><code>$samplerequesturi = "/variable/12345678910";</code></p>
  
  <p>To determine if it is legit, the first section <code>variable</code> is only letters and is variable in length.  The second section is numbers, which should have 11 total.  My problem is escaping the forward slash so it is matched in the uri.  I've tried:</p>
  
  <pre><code>preg_match("/^[\/]{1}[a-z][\/]{1}[0-9]{11}+$/", $samplerequesturi)
  preg_match("/^[\\/]{1}[a-z][\\/]{1}[0-9]{11}+$/", $samplerequesturi)
  preg_match("/^#/#{1}[a-z]#/#{1}[0-9]{11}+$/", $samplerequesturi)
  preg_match("/^|/|{1}[a-z]|/|{1}[0-9]{11}+$/", $samplerequesturi)
  </code></pre>
  
  <p>Among others which I can't remember now.</p>
  
  <p>The request usually errors out:</p>
  
  <pre><code>preg_match(): Unknown modifier '|' 
  preg_match(): Unknown modifier '#'
  preg_match(): Unknown modifier '['
  </code></pre>
  
  <p>Edit:
  I guess I should state that the REQUEST URI is already known.  I'm trying to prove the whole string to make sure it isn't a bogus string ie to make sure there the 1st set is only lower case letters, and the 2nd set is only 11 numbers.</p>