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