Microsoft.JScript.RegExpConstructor.GetLastParen C# (CSharp) Method

GetLastParen() private method

private GetLastParen ( ) : Object
return Object
      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() : "";
      }