title: How to know string regardless of proper format
body: <p>I have variable like this</p>
  
  <pre><code>$string = "Hello World";
  </code></pre>
  
  <p>I want to compare its with properly format:</p>
  
  <pre><code>$formatstring = 'anystringornumber/anystringornumber/anystringornumber/anystringornumber/number';
  </code></pre>
  
  <p>This is my PHP usage:</p>
  
  <pre><code>$key = "Kode Parkir 1/01012015/Shift1/Suhendra/25000";
  $regex = '^[A-Za-z]/[A-Za-z]/[A-Za-z]/[A-Za-z]/[0-9]^';
  if (preg_match($regex, $key)) {
      echo 'Passed';
  } else {
      echo 'Wrong key';
  }
  </code></pre>
  
  <p>The result always <code>Wrong Key</code>.</p>