There is a string like:
CellInfo:51342693,465,6290
you need to parse the string and output something like:
Cell Info: First String: 51342693 Second String: 465 Third: 6290
How to do it?
tried to use print ("First String" + s [10:19])
But the snag is that the values change and may be shorter and the indexes are already working incorrectly.
x=ser.readline(x) if(re.findall("[0-9]",x)): values=x.split(':')[1].split(',') print('First String: %x ' % values[0])