Equivalent to StringTokenizer with multiple characters delimiters

前端 未结 3 1473
你的背包
你的背包 2021-01-18 07:34

I try to split a String into tokens.

The token delimiters are not single characters, some delimiters are included into others (example, & and &&), and

3条回答
  •  情书的邮戳
    2021-01-18 08:28

    Split won't do it for you as it removed the delimeter. You probably need to tokenize the string on your own (i.e. a for-loop) or use a framework like http://www.antlr.org/

提交回复
热议问题