Ok thanks. So i’ve tried splitting the string by /s+
string1 = '>= 15 FS99 <= 46 SS99 >= 0.0 SS88 >= 90 SS77 == 90 SS77 < 90'
list_splilt = re.split('\s+', string1 )
list_splilt ['>=' ,'15','FS99'. '<=' ,'46' ,'SS99', '>=', '0.0', 'SS88', '>=', '90', 'SS77', '==', '90', 'SS77', '<', '90']
What I need to do is then group the substring that is surrounded by > 15 xxx < 16 (5 elements) and then a second group that will contain 3 elements ‘SS77’, ‘<’, ‘90’
I’ve no idea how to do this dynamically. The substring SS88 are variables so will change with each run.