I have a string where the pattern has multiple occurrences. I want to split the string into 4 parts with pattern "multiplex" including the pattern(multiplex). I want to have 4 strings
String1 = Name to true
String2 = Multiplex to 1000
String3 = Multiplex to 200
String4 = Multiplex to true
String aaa = "Name:1/1, Network: true, ...(more data)... MPEG: true Multiplex: 0004, Transport Stream ID: 0, Bandwidth: 5000000,...(more data)... Reserved Bandwidth: 1000 Multiplex: 0002, Transport Stream ID: 0, Bandwidth: 5000000,...(more data).. Reserved Bandwidth: 200 Multiplex: 0008, Transport Stream ID: 0, Bandwidth: 5000000, Reserved Bandwidth: 100000,...(more data)...true
Pattern pattern = Pattern.compile("Multiplex:");
Matcher m = pattern.matcher(aaa);
while (m.find())
Ho do I divide the string into 4 parts including "Multiplex"?