title: Optional URL Parameter in Route GAE webapp2
body: <p>I'm really new to Python and GAE.  I'm setting up a basic CRUD app for some test data and am trying to get some routing for the admin pages going.  I'd like to use the same page for creating and editing an object.  So basically I want:</p>
  
  <pre><code>/admin/edit/&lt;id&gt;
  </code></pre>
  
  <p>where <code>&lt;id&gt;</code> is optional and <code>/admin/edit</code> will route to the same page.  I tried adding <code>&lt;id:\w*&gt;</code> to the route which then allowed me to hit the page without supplying an id, but then when I supplied the id, I received a 404.  Then I tried <code>&lt;id:\w+&gt;</code> and got a 404 with and without an id.  I'm not having much luck.</p>
  
  <p>Can anyone help me with what regex I need for this?</p>