Interface RegexIterator

    • Method Detail

      • isMatching

        boolean isMatching()
        Determine whether the current item in the sequence is a matching item or a non-matching item
        Returns:
        true if the current item is a matching item
      • getNumberOfGroups

        int getNumberOfGroups()
        Get the number of captured groups in the current matching item
      • getRegexGroup

        String getRegexGroup​(int number)
        Get a substring that matches a parenthesised group within the regular expression
        Parameters:
        number - the number of the group to be obtained
        Returns:
        the substring of the current item that matches the n'th parenthesized group within the regular expression