title: Yii: The URL pattern for route is not a valid regular expression
body: <p>I've got a very strange problem. I have some simple routes configured which worked on my local server (PHP 5.3 and 5.4, both work fine) but on the deployment server (PHP 5.3.23) they failed, so I even switched to the default routes preconfigured by Yii (even though I'm pretty sure mine was correct), but they also fail with the following exception <code>The URL pattern "&lt;controller:\w+&gt;/&lt;id:\d+&gt;" for route "&lt;controller&gt;/view" is not a valid regular expression.</code></p>
  
  <p>Here are the routes:</p>
  
  <pre><code>'urlManager'=&gt;array(
      'urlFormat'=&gt;'path',
      'rules'=&gt;array(
          //'^$' =&gt; 'site/index',
          //'&lt;view:[\w\-\_\d]+&gt;' =&gt; 'site/paged',
          '&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view',
          '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
          '&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
      ),
      'showScriptName' =&gt; true,
  ),
  </code></pre>
  
  <p>as you can see I've commented out my two routes to make sure I didn't made some stupid mistake.</p>
  
  <p>What is wrong?</p>
  
  <hr>
  
  <p>here's the backtrace if anyone's interested <a href="http://i.imgur.com/z0HtioQ.png" rel="nofollow">http://i.imgur.com/z0HtioQ.png</a></p>