Python, how to substitute one level of a path for "anything" or "*"
<p>I am making a search script for parsing log files in archives and am stuck at one particular thing I didnt find resources anywhere else. </p>

<p>I need to somehow replace the "id1" of this string for "anything". Simply put I want the script to take anything in that particular place in path. Is this possible only by using logZip as one huge regex?</p>

<pre><code>logZip = ("c:/logs/" + str(id1) + "/" + str(id2) + "/" + str(id1) + "_log_" + str(dateID) + "_" + str(hourID) + "-00_" + str(id2) + ".zip")
</code></pre>

<p>As requested, Im adding a sample paths and files I want to define:</p>

<pre><code>c:/logs/aaa1/sss2/aaa1_log_2013-01-14-13-00_sss2.zip
c:/logs/aaa2/sss2/aaa2_log_2013-01-14-13-00_sss2.zip
c:/logs/aaa3/sss2/aaa3_log_2013-01-14-13-00_sss2.zip
</code></pre>

<p>Next step will be to make the same thing with sss2 part.</p>
