how can can i do this ? i can't get the return value and i can understand how regex work .

 string value = "+CMT:"+639231568462"," ","18/10/07,14:31:32+32" HELLO"
    Regex r = new Regex("");
    Match m = r.Match(value);

          string number = m.Group[0].toString();
          string Date = m.Group[1].toString();
          string Time = m.Group[2].toString();
          string Mesage= m.Group[3].toString();



number = +639231568462;
date = 18/10/07;
time = 14:31:32;
message = HELLO;

closed as off-topic by Erik Darling, a_horse_with_no_name, Michael Green, miracle173, TomTom Oct 7 '18 at 11:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    this question is about c# and regular expression, but it is not database related. So it is off topic here. Maybe it is suitavle for stackoverflow.com – miracle173 Oct 7 '18 at 11:18

First your string is not valid. This will display compile time errors in your IDE

for simply parsing text you can use the split() method.

 string[] a = value.Split(',');

see this fiddle : https://dotnetfiddle.net/0amHEP

  • what is happening is i'm receiving a message comming from sms / gsm using an "uart" , and i can't parse it. – zarx burger Oct 8 '18 at 3:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.