fork(1) download
  1. s <- "(((K05708+K05709+K05710+K00529) K05711),K05712) K05713 K05714 K02554"
  2. strsplit(s, "(\\((?:[^()]++|(?1))*\\))(*SKIP)(*F)| ", perl=TRUE)
Success #stdin #stdout 0.22s 60752KB
stdin
Standard input is empty
stdout
[[1]]
[1] "(((K05708+K05709+K05710+K00529) K05711),K05712)"
[2] "K05713"                                         
[3] "K05714"                                         
[4] "K02554"