I have the following string: ['', '+VZWRSRP: 64,6300,-101.70', '', 'OK', '']
Where I try to put everything after the second comma into the variable PCI, everything after the 3rd comma into variable earfcn and everything after the 4th comman into variable RSRP.
As start I wanted to test it with RSRP and the following regex command:
cellinfo = ['', '+VZWRSRP: 64,6300,-101.70', '', 'OK', '']
rsrp = re.search('-(.+?)\'', cellinfo)
But somehow I can't get it working.
What's a good solution to achieve this?