import rerawByteString = b'\\!\x00\x00\x00\x00\x00\x00\\!\x00\x00\x00\x00\x00\x00'print ( re.split(rb'(?!\A)(?=\\!)', rawByteString) )
Standard input is empty
[b'\\!\x00\x00\x00\x00\x00\x00', b'\\!\x00\x00\x00\x00\x00\x00']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!