I have the following Regular Expression-
string s = "{\"data\": {\"words\": [{\"wordsText\": \"Three Elephants /d
in the jungle\"}]}}";
string[] words = s.Split('\\',':','[',']','{','}','"');
foreach (string word in words)
{
Console.WriteLine(word);
}
Which outputs-
data
words
wordsText
Three Elephants /d in the jungle
What is the best way to get rid of the first 3 lines in the output so that I only get the last line- Three Elephants /d in the jungle.
I believe if I were to write out all text after "wordsText\": this could be a possible method, any help is much appreciated.