title: Retrieving an IP address as a parameter inside a Django URL
body: <p>My application is listing some game servers IP addresses.</p>
  
  <p>I want to add a simple search engine, taking a regular expression in it. I would type <code>^200.</code> to list only the IP addresses beginning with <code>200.</code></p>
  
  <p>The form would redirect me to the results page by sending a GET request like that :</p>
  
  <pre><code>/servers/search/^200./page/1/range/30/
  </code></pre>
  
  <p>This is the line I'm using in <code>urls.py</code> :</p>
  
  <pre><code>url(r'^servers/search/(?P&lt;search&gt;[a-zA-Z0-9.]+)/page/(?P&lt;page&gt;\d+)/range/(?P&lt;count&gt;\d+)/$', gameservers.views.index)
  </code></pre>
  
  <p>But it doesn't work the way I expected. No results are shown. I've intentionally made a syntax error to see the local variables. Then I realized that the <code>search</code> variable's value is the following :</p>
  
  <pre><code>^200./page/1/range/30/
  </code></pre>
  
  <p>How can I fix this ? I've thought about moving the <code>search</code> parameter in the url's ending, but it might be very interesting to see if there is a way to limit the value with the next <code>/</code>.</p>