I'm using Regex for the first time, so I'm sorry if this is a basic question..
I'm trying to match this input string with regex:
string input = "\r\n+CMGL: 3,\"REC UNREAD\",\"+999999999\",,\"21/07/15,14:06:38+08\",145,10\r\nTest1\nTest2\r\n\r\nOK\r\n";
Regex r = new Regex(@"\+CMGL: (\d+),""(.+)"",""(.+)"",,""(.+),(.+)""\r\n(.+)\r\n");
I have no problem matching the first part of the input with this code:
Regex r = new Regex(@"\+CMGL: (\d+),""(.+)"",""(.+)"",,""(.+),(.+)");
But I cannot find the way to match this last part: \r\nTest1\nTest2\r\n
Really appreciate the help.
