I have hex strings split by the occurance of 'ff'. Unfortunately, f can also occur within a string, and, most importantly, at the end of a string (it cannot occur at the beginning). I need to split a string such that:
90500303040fff90500303040fff
is split into:
90500303040f
90500303040f
Whats a string-based way of going about this? (currently I'm doing it on byte level, but I'd like to learn a clean string way)
re.split('ff(!?f)', ...)