I am pretty weak in regex. I'm looking for some help with how to extract the .sav
file name from the following string:
C:\Users...\Standard Loadflows Seq and Dyn PSSEv34 - 2019-02-20\AutumnHi-20180531-183047-34-SystemNormal\AutumnHi-20180531-183047-34-SystemNormal.sav
Currently I am using this code:
re.findall(r'\\(.+).sav',txt)
but it only finds
['Users\\...\\Standard Loadflows Seq and Dyn PSSEv34 - 2019-02-20\\AutumnHi-20180531-183047-34-SystemNormal\AutumnHi-20180531-183047-34-SystemNormal.sav was']
I'm trying to find "AutumnHi-20180531-183047-34-SystemNormal.sav"
I am using Python 3.7.