private Object GetLastParen() {
if (this.regex == null || this.lastRegexMatch == null)
return "";
String[] groupNames = this.regex.GetGroupNames();
if (groupNames.Length <= 1)
return "";
int lastGroupNumber = this.regex.GroupNumberFromName(
groupNames[groupNames.Length - 1]);
Group group = this.lastRegexMatch.Groups[lastGroupNumber];
return group.Success ? group.ToString() : "";
}