
Keith Y. answered 09/07/19
Tutor
5
(43)
STEM Tutor - Multi Degree Freelance Engineer and Consultant
Honestly this is one of the ways I'd do it. You can also try with regex. Make sure to import re for regex and try re.match("^\d+?\.\d+?", stringName). I can't promise it will work for you but a quick test worked for me.