I'm using Python3, Linux Mint and Visual Studio Code.
I have some code that reads a directory and prints some xml files like so:
persistence_security_dcshadow_4742.xml
Network_Service_Guest_added_to_admins_4732.xml
spoolsample_5145.xml
LM_Remote_Service02_7045.xml
DE_RDP_Tunneling_4624.xml
I'm trying to figure out how to write so that only the integers remain after I have run this read script, i.e., removing all text with only numbers remaining. I tried using regular expression with use of the import re
module but didn't have much luck.