i have a buffer with strings. between string i have these chars \r\n example that i see in the buffer (string1\r\nstring3\r\nstring4.....), how i can using regular expression split this buffer in to lines.
and second question : i have in the output this string Modem Info,0,0,354869050554021
i tried to use this code: buff1 = System.Text.RegularExpressions.Regex.Match(imei, @"\d{15}\z").Groups[1].Value;
if (System.Text.RegularExpressions.Regex.IsMatch(imei, @"\d{15}\z") == true)
{ label1.Text = buff1; }
else
{ label1.Text = "NOT Found"; }
and another option @,\d{15}$" but it's didn't work
Might be you don't need Regex to split strings in C#? Easiest way to split a string on newlines in .NET?
The second question: You need to use parentheses to extract groups