Python match pattern to rename file : <p>I have couple of files with like this, <code>llm_rc_v3212.xml, llm_ds_v3232.xml</code>.
Names can be anything. however, common parameter would be<code>_v3212</code>. I want to match this number and replace it (ideally renaming the file).</p>

<p>How can i match this pattern with regex? I am trying to use <code>re.sub</code>, but not able to figure yet. </p>

<p>any help would be appreciated.</p>
