title: CodeIgniter Routes and Regex
body: <p>I'm trying to create a route on CodeIgniter that matches 3 numbers followed by a hyphen followed by anything.  So far I have had zero luck.  I've tried the following:</p>
  
  <pre><code>$route['([0-9]+)-([a-zA-Z0-9]+)'] = 'product/index/$1';
  $route['([0-9]+)([a-zA-Z0-9-]+)'] = 'product/index/$1';
  $route['(:num)-(:any)'] = 'product/index/$1';
  $route['([0-9]{3})-(:any)'] = 'product/index/$1';
  $route['(\d{3})-(:any)'] = 'product/index/$1';
  </code></pre>
  
  <p>And so on.  Does anyone know how I can do this?</p>