c# get last regex match code example Example: c# regex find last match Regex.Match(s, @"\[\[(.*?)\]\]", RegexOptions.RightToLeft)