fork download
  1. import re
  2. p = re.compile(r'\*\s*\({2}.*?\){2}\s*')
  3. test_str = "Name Multiple Words Testing With 1234 Numbers and this stuff* ((Bla Bla Bla (Bla Bla) A40 & A41)) Name Multiple Words Testing With 3456 Numbers and this stuff2* ((Bla Bla Bla (Bla Bla) A42 & A43)) Name Multiple Words Testing With 78910 Numbers and this stuff3* ((Bla Bla Bla (Bla Bla) A44 & A45)) Name Multiple Words Testing With 1234 Numbers and this stuff4* ((Bla Bla Bla (Bla Bla) A46 & A47)) Name Multiple Words Testing With 1234 Numbers and this stuff5* ((Bla Bla Bla (Bla Bla) A48 & A49)) Name Multiple Words Testing With 1234 Numbers and this stuff6* ((Bla Bla Bla (Bla Bla) A50 & A51)) Name Multiple Words Testing With 1234 Numbers and this stuff7* ((Bla Bla Bla (Bla Bla) A52 & A53)) Name Multiple Words Testing With 1234 Numbers and this stuff8* ((Bla Bla Bla (Bla Bla) A54 & A55)) Name Multiple Words Testing With 1234 Numbers and this stuff9* ((Bla Bla Bla (Bla Bla) A56 & A57)) Name Multiple Words Testing With 1234 Numbers and this stuff10* ((Bla Bla Bla (Bla Bla) A58 & A59)) Name Multiple Words Testing With 1234 Numbers and this stuff11* ((Bla Bla Bla (Bla Bla) A60 & A61)) Name Multiple Words Testing With 1234 Numbers and this stuff12* ((Bla Bla Bla (Bla Bla) A62 & A63)) Name Multiple Words Testing With 1234 Numbers and this stuff13* ((Bla Bla Bla (Bla Bla) A64 & A65)) Name Multiple Words Testing With 1234 Numbers and this stuff14* ((Bla Bla Bla (Bla Bla) A66 & A67)) Name Multiple Words Testing With 1234 Numbers and this stuff15* ((Bla Bla Bla (Bla Bla) A68 & A69)) Name Multiple Words Testing With 1234 Numbers and this stuff16*"
  4. print(re.split(p, test_str))
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
['Name Multiple Words Testing With 1234 Numbers and this stuff', 'Name Multiple Words Testing With 3456 Numbers and this stuff2', 'Name Multiple Words Testing With 78910 Numbers and this stuff3', 'Name Multiple Words Testing With 1234 Numbers and this stuff4', 'Name Multiple Words Testing With 1234 Numbers and this stuff5', 'Name Multiple Words Testing With 1234 Numbers and this stuff6', 'Name Multiple Words Testing With 1234 Numbers and this stuff7', 'Name Multiple Words Testing With 1234 Numbers and this stuff8', 'Name Multiple Words Testing With 1234 Numbers and this stuff9', 'Name Multiple Words Testing With 1234 Numbers and this stuff10', 'Name Multiple Words Testing With 1234 Numbers and this stuff11', 'Name Multiple Words Testing With 1234 Numbers and this stuff12', 'Name Multiple Words Testing With 1234 Numbers and this stuff13', 'Name Multiple Words Testing With 1234 Numbers and this stuff14', 'Name Multiple Words Testing With 1234 Numbers and this stuff15', 'Name Multiple Words Testing With 1234 Numbers and this stuff16*']