我有一个看起来像这样的字符串。
String str="some data some data some data some data some data some data
some data some data some data some data some data some data some data
some data some data some data some data some data some data
some data some data some data some data some data
some data some data some data some data some data
YLOG^2Fri Nov 08 00:58:59 PST 2013^^^^^^^^^^^^^^^^^^^^^latency in nano time : 264414262^
YLOG^2Fri Nov 08 00:58:59 PST 2013^^^^ XML after modification :<site name="some data ">
some data some data some data some data some data some data some data
some data some data some data some data some data some data
some data some data some data some data some data
some data some data some data some data some data some data some data some data some data some data some data some data
some data some data some data some data some data some data
some data some data some data some data some data
some data some data some data some data some data "
我想将此字符串拆分为部分。基本上我需要之后的部分
^^^^^^纳米时间的延迟:
那将是:
264414262^
YLOG^2Fri Nov 08 00:58:59 PST 2013^^^^ XML after modification :<site name="some data ">
some data some data some data some data some data some data some data
some data some data some data some data some data some data
some data some data some data some data some data
some data some data some data some data some data some data some data some data some data some data some data some data
some data some data some data some data some data some data
some data some data some data some data some data
some data some data some data some data some data
我尝试了什么:
String[] splited = str.split("^^^^^latency in nano");
Sysout(splitted);
但这对我没有用。任何帮助,将不胜感激。