fork download
  1. # your code goes here
  2. import re
  3. s = "Za @Foo_Bar: @BAR_foo @FooBAR @BArfoo"
  4. print(re.split('(?<!\AZa):? @', s))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['Za @Foo_Bar', 'BAR_foo', 'FooBAR', 'BArfoo']