I have the following string;
[Username [rank] -> me] message
The characters of the rank, username, and message will vary each time. What is the best way I can break this into three separate variables (Username, rank and message)?
I have experimented with:
String[] parts = text.split("] ");
But it is throwing back errors. Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…