fork download
  1. import re
  2. test_str = "[1]first[2]second[3]third"
  3. print( re.split(r'(?!^)(?=\[\d+\])', test_str) )
Success #stdin #stdout 0.04s 9412KB
stdin
Standard input is empty
stdout
['[1]first', '[2]second', '[3]third']