I have one variable which contains many information and I want to extract some data from that line but not getting expected result.
Following is code
import re
line = "2019-08-10 00:57:24 [Thread-0] DEBUG CSConnection - Serial : LOG: ABC=1 XYZ=42 PQR=0015236800MOSAER"
result = re.search((r" (.*?):(.*?):"), line).group(0)
print(result)
Following output I am expecting
00:57
Following output I am getting.
00:57:
What is missing to get the result?