My need is to get a log build like :
2022-08-22 - something WARN - data1 = 6.3 something| data2 = 7 something | data3 = 8 units
And to at very end have a Json output within
'field1':'2022-08-22','field2':'something','data1':'6.3','data2':'7','data3':'8'
So I need to manage auto naming field1 & field2 keynames & to manage all of "WARN",'-','=','|' as distinct separators
I tried few codes around more or less similar solutions to
split_string = sample_string.split(',|\|=') # just interprets the ',' char only
as first step (current question) to get separators working but I already failed on that part
isn't split the good function/solution to get it using python 2.7 without pandas module (not allowed in my company).