I have couple of files with like this, llm_rc_v3212.xml, llm_ds_v3232.xml
.
Names can be anything. however, common parameter would be_v3212
. I want to match this number and replace it (ideally renaming the file).
How can i match this pattern with regex? I am trying to use re.sub
, but not able to figure yet.
any help would be appreciated.