Hi,
The following regex code will match two strings which fall in between ">" and "<":
--------
string rawReview = "aaaaaaaa>string1<bbbbbbb>string2<cccccccc";
match = Regex.Match(rawReview, @">([^<]*).*?>([^<]*)");
if (match.Success)
{
Console.Write("Match found {0} {1}\n", match.Groups[1], match.Groups[2]);
}
--------
Match found string1 string2
I would like to extend this example to be able to match an arbitrary number of strings which fall between the bracket chars. Is this possible?
Thank you very much for reading and considering my question.
Thank you very much.