fork(1) download
  1. text = "A;BB;C[1;22];DDD[11;2;33];EEEEE[1111]"
  2. puts text.scan(/(?:\[[^\]\[]*\]|[^;])+/)
Success #stdin #stdout 0.01s 6456KB
stdin
Standard input is empty
stdout
A
BB
C[1;22]
DDD[11;2;33]
EEEEE[1111]