title: Regex routers in zend framework,how to make merge these routers?
body: <p>I need to know how can I merge these routers into one?
  I want to have just one router instead of these ones.
  I appreciate any answer.:)</p>
  
  <pre><code>        $route = new Zend_Controller_Router_Route_Regex(
          '([a-z]{2})/(\w+)/(\w+)/(\w+)',
          array('controller'=&gt;'index',
              'action' =&gt; 'index',
              'module'=&gt;'default',
              'lang'=&gt;$lang
          ),
          array(
              1=&gt;'lang',
              2=&gt;'module',
              3=&gt;'controller',
              4=&gt;'action'
          )
      );
      $router-&gt;addRoute('default_lang_action', $route);
  
      $route = new Zend_Controller_Router_Route_Regex(
          '([a-z]{2})/(\w+)/(\w+)',
          array('controller'=&gt;'index',
              'action' =&gt; 'index',
              'module'=&gt;'login',
              'lang'=&gt;$lang
          ),
          array(
              1=&gt;'lang',
              2=&gt;'module',
              3=&gt;'controller'
             )
      );
      $router-&gt;addRoute('default_lang_con', $route);
  
      $route = new Zend_Controller_Router_Route_Regex(
          '([a-z]{2})/(\w+)',
          array('controller'=&gt;'index',
              'action' =&gt; 'index',
              'module'=&gt;'default',
              'lang'=&gt;$lang
          ),
          array(
              1=&gt;'lang',
              2=&gt;'module'
          )
      );
      $router-&gt;addRoute('default_lang_mod', $route);
  
      $route = new Zend_Controller_Router_Route_Regex(
          '([a-z]{2})',
          array('controller'=&gt;'index',
              'action' =&gt; 'index',
              'module'=&gt;'default',
              'lang'=&gt;$lang
          ),
          array(
              1=&gt;'lang'
          )
      );
              $router-&gt;addRoute('default_lang', $route);
  </code></pre>