I want to extract all numbers that look like they may indicate a range in distances using regex in python.
s = "3 to 6 km. 3 - 6 km"
re.findall(r'(\d [(to)|\-] \d km)', s)
# desired result ['3 to 6 km', '3 - 6 km']
# result: ['3 - 6 km']
How can I modify this to get the desired result?