I have been working on a python Data Visualization project of WhatsApp Chat. I have a string like this.
line = '[14/11/18, 2:47:26 PM] Chaitanya: Yeah, Lets go to the movies to night'
And I want to break it down to exactly like this.
['[14/11/18, 2:47:26 PM]', 'Chaitanya: Yeah, Lets go to the movies to night']
I have tried doing with split()
function, but I can't seem to get this exact same thing. Also first time field will vary so length of that field might not be the same every time.
I would appriciate some help. Thanks.