Python: regular expressions in url
<p>I have some url like</p>

<pre><code>https://www.avito.ru/chelyabinsk/avtomobili/audi_a4_2014_818414044
</code></pre>

<p>And I need to get pattern from this. I know, that * is the symbol, that can replace any symbol, but when I try <code>https://www.avito.ru/*/avtomobili</code> it doesn't open this url. 
How can I fix that?</p>

<p><code>*</code> means match the last symbol zero or more times.</p>

<p>For example, <code>x*</code> matches 'xxxxxxx....', and <code>[a-z]*</code> matches 'abcsiiwdqhwid...'.</p>

<p>Why not try </p>

<pre><code>https://www.avito.ru/[a-z]*/avtomobili
</code></pre>

<p>or</p>

<pre><code>https://www.avito.ru/.*?/avtomobili
</code></pre>

python regex