regexes and optional parts of url via AltoRouter
<p>recently i used <a href="https://github.com/dannyvankooten/AltoRouter#license" rel="nofollow">AltoRouter</a>
i'm tried to use this</p>

<pre><code>'/news/[a:cat]/?(index(-[i:page])?.[:format])?'
</code></pre>

<p>and then used </p>

<pre><code>$router-&gt;generate('category',array('format' =&gt; 'html','cat' =&gt; 'world','page' =&gt; 7))
</code></pre>

<p>the out put <code>"/news/world/?(index(-7)?.xml)?"</code>
as you see its not recognize the ()? it only recognize ?</p>

<hr>

<p><strong>examples</strong>
it recoginze <code>[:action]?</code> but not <code>(index.[:action])?</code></p>

<p>can any one modify this <a href="https://github.com/dannyvankooten/AltoRouter/blob/master/AltoRouter.php" rel="nofollow">https://github.com/dannyvankooten/AltoRouter/blob/master/AltoRouter.php</a> to make that job</p>
