I have this string:
"{ _id : ObjectId( 4e85ba250364e5a1857ba2e4 ),
message : <user=animesh@strumsoft.com>, <action=create-flock>,
params=[<title=[smile.animesh@gmail.com, ram@strumsoft.com],
attendees=immediate, flockType=immediate, duration=30]> }";
我在座各位:
private static String REGEXFinal = "<(.*?)>";
private static String REGEX2Final = "<(.*)>";
在适用上述两条条例后,即:
user=a@a.com
action=create-flock
title=[a@a.com, b@b.com], attendees=immediate, flockType=immediate, duration=30]
但我希望O/P以关键/价值格式,如
user a@a.com
action create-flock
title [a@a.com, b@b.com], attendees=immediate, flockType=immediate, duration=30]
如何做到这一点?