Class Match

    • Constructor Detail

      • Match

        public Match()
        Creates an instance.
    • Method Detail

      • clone

        public Object clone()
      • getNumberOfGroups

        public int getNumberOfGroups()
        Return the number of regular expression groups. This method returns 1 when the regular expression has no capturing-parenthesis.
      • getBeginning

        public int getBeginning​(int index)
        Return a start position in the target text matched to specified regular expression group.
        Parameters:
        index - Less than getNumberOfGroups().
      • getEnd

        public int getEnd​(int index)
        Return an end position in the target text matched to specified regular expression group.
        Parameters:
        index - Less than getNumberOfGroups().
      • getCapturedText

        public String getCapturedText​(int index)
        Return an substring of the target text matched to specified regular expression group.
        Parameters:
        index - Less than getNumberOfGroups().