I have a text file in that
line="File Creation Time: 2017-01-30T10:04:54.295767-08:00"
I have to split it with as a key and value pairs.
Below is my code:
l = line.split(':', 1)
but I want to do it using regex operators.
I have a text file in that
line="File Creation Time: 2017-01-30T10:04:54.295767-08:00"
I have to split it with as a key and value pairs.
Below is my code:
l = line.split(':', 1)
but I want to do it using regex operators.