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