I have a string that contains something like this "'asd asd asd / * ... asd ' asd..." I just want to retrieve only the value that starts from ' and ends the same character '. So from that string the value will be "asd asd asd / * ... asd"
I tried with the code below but it doesn't work.
string HDtext = new string(TextChar.SkipWhile(c => !Char.IsSymbol(c))
.TakeWhile(c => Char.IsLetter(c) ||
c == '*' ||
c == '/' ||
c == ' ')
.ToArray());
Does anybody know how to retrive it correctly ?