Apr-21-2017, 11:24 AM
I am using regex to match all the values in the string that contain the timestamp and put it into a list:
match = re.findall(r'(AA08)', data)
I think i'll need to use this because some frames are a little corrupted, containing perhaps A0AA as a timestamp instead etc so I'll need a way of identifying these corruptions and finding similar patterns.
I want to create a list of all the valeus that do NOT contain the timestamp, so that each list index in 'match 'will correlate to the index of 'noMatch'... then I can go from there.
But it seems quite difficult to get any regex to work that returns a list of the string that does not contain AA08
Any idea how to get that?
match = re.findall(r'(AA08)', data)
I think i'll need to use this because some frames are a little corrupted, containing perhaps A0AA as a timestamp instead etc so I'll need a way of identifying these corruptions and finding similar patterns.
I want to create a list of all the valeus that do NOT contain the timestamp, so that each list index in 'match 'will correlate to the index of 'noMatch'... then I can go from there.
But it seems quite difficult to get any regex to work that returns a list of the string that does not contain AA08
Any idea how to get that?