I receive a text like:
`D:ProgrammingsitbinMyLab.json`
It may contain different kind of quotes or may not contain them. Quotes if present are placed strictly at the beggining and at the end of the text, wrapping the path. But the text definately contains absolute windows path of a file. But this file may also be absent. I am struggling to write algorythm extracting the path.
I have tried regex like:
re.findall(r'[a-zA-Z]:\((?:[a-zA-Z0-9() ]*\)*).*', a)
but I receive:
['Programming\sit\bin\']
But I expect to get string with path like:
D:ProgrammingsitbinMyLab.json
IzaeDA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.