title: properly escape URL slashes in regex
body: <p>I need help escaping slashes in a pattern which searches a URL path. I'm trying to check if a path contains any numbers in the path after <code>/orders/</code> like this:</p>
  
  <pre><code>$str = '/admin/store/orders/20284?width...';
  
  if ( preg_match ( '/orders/([0-9]+)/', $str, $matches ) )
  {
      print_r($matches);
  }
  </code></pre>
  
  <p>However, I am not able to escape the slashes properly. Can anybody help? Thank you.</p>