我有一个像这样的字符串:
nw.str <- "[D][A|D][T|A:D][C|T]"
我需要以这种方式拆分它:
"[D]" "[A|D]" "[T|A:D]" "[C|T]"
string split r vector
r ×1
split ×1
string ×1
vector ×1