[4/20/2018 21:55:47] "korg-pa600-musikant-sd-dongle-crackinstmank" - 2731.
A:
Using this code:
//String text=yourMessage;
String string = "";
String[] parts = text.split(Pattern.quote("
"));
for (String part : parts) {
string = string + part + "
";
}
String lines = string.replace("
", "; ").replace("
", "; ");
System.out.println("LINES: " + lines);
your output will be:
lines: Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank
See how the second line is split into two lines, because you have 2 messages.
[EDIT]
For the "from: " and "to:"
String string = "Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank";
String[] parts = string.split(Pattern.quote("
"));
String from = parts[0].replaceAll(" ","").replace("Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank", "From: ");
String to = parts[1].replaceAll(" ","").replace("Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank", "To: ");
System.out.println("FROM: " + from);
System.out.println("TO: " + to);
prints out:
FROM: From: "Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank" To: "Christina.Arnqvist"
A:
You can try:
final String text = "Korg-Pa600-Musikant-Sd-Dongle-Crackinstmank
This is a test message ac619d1d87
Related links:
Comments