I am trying to break up an array I got through an API on a site, which Java has retrieved as a String
.
String[] ex = exampleString.split("},{");
A PatternSyntaxException
is thrown. For some reason, it really doesn't like },{
.
I have tried escaping it as {
, but it says it is an illegal escape.
What is the proper way to escape this string?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…