Is it possible to define optional route segments?
You can make a capturing group optional, simply append ? to it. In this case you'd need to add an additional group that includes the backslash and make it optional.

"myplugin(/(?P&lt;myVariable&gt;[-\w]+))?" =&gt; array("action" =&gt; "myPlugin/myAction")