# your code goes hereimport res = "Za @Foo_Bar: @BAR_foo @FooBAR @BArfoo"print(re.split('(?<!\AZa):? @', s))
Standard input is empty
['Za @Foo_Bar', 'BAR_foo', 'FooBAR', 'BArfoo']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!