I need assistance with parsing multiple lines of text found in log files following this specific format:
topic, the message part, contains occasional commas.
Is there a method to separate the string starting from the first comma so that I can store the topic and the remaining message in two different variables?
My attempt to use this splitting method failed to handle situations where there are additional commas within the message part.
[topic, message] = whole_message.split(",", 2);