我想把绳子分开
[{"starDate":"","endDate":"","relativeDays":,"cronExpression":""},{"starDate":"","endDate":"","relativeDays":,"cronExpression":""}]
到
{"starDate":"","endDate":"","relativeDays":,"cronExpression":""}
{"starDate":"","endDate":"","relativeDays":,"cronExpression":""}
2条答案
按热度按时间z9smfwbn1#
也许这一行适合您,因为不清楚您是想要两个字符串还是一个带有显式换行符的字符串
0tdrvxhp2#
理想情况下,您应该以正确的方式使用json解析(如果适用的话)。
同时,对于这种非常特殊的情况,可以使用正则表达式来提取所需的部分(java中的示例):
这将导致: