// define regular expressions parsed content between [and], including [and]
// pay attention to this. *? Written, additional question marks are as short as possible match, which is very important, otherwise most long match
string patttern = @ "([) *.? (])";
// pay attention to this. *? Written, additional question marks are as short as possible match, which is very important, otherwise most long match
string patttern = @ "([) *.? (])";
// parsed [and] between the content stored in the match
Match match = Regex.Match (jsonString, patttern , RegexOptions.IgnoreCase);
Match match = Regex.Match (jsonString, patttern , RegexOptions.IgnoreCase);
// parsed content between a plurality of [and], matches stored in the
List <String> LST = new new List <String> ();
the MatchCollection matches = Regex.Matches (JSONString, patttern, RegexOptions.IgnoreCase);
the foreach (Match The matches in m)
{
lst.Add (m.Value);
}
List <String> LST = new new List <String> ();
the MatchCollection matches = Regex.Matches (JSONString, patttern, RegexOptions.IgnoreCase);
the foreach (Match The matches in m)
{
lst.Add (m.Value);
}