I am trying to narrow down a string and find all of the paths.
pathRegex = re.compile(r"^([cC]?[:]?\\)([\a-zA-Z0-9]*)$\S")
mo = pathRegex.findall(r"I have two paths. First is C:\Users\patrick
and the other is C:\Users\patrick\documents.")
But the output I keep getting is:
['C:\\Users\\pgrimm and the other is C:\\Users\\pgrimm\\documents.']
How do I change the Regex so that it just finds the paths and not the middle text?