All Known Implementing Classes:
Matcher

  • Method Summary

    int

    end()

    Returns the offset after the last character matched.

    int

    end(int group)

    Returns the offset after the last character of the subsequence captured by the given group during this match.

    default int

    Returns the offset after the last character of the subsequence captured by the given named-capturing group during the previous match operation.

    group()

    Returns the input subsequence matched by the previous match.

    group(int group)

    Returns the input subsequence captured by the given group during the previous match operation.

    Returns the input subsequence captured by the given named-capturing group during the previous match operation.

    int

    Returns the number of capturing groups in this match result's pattern.

    default boolean

    hasMatch()

    Returns whether this contains a valid match from a previous match or find operation.

    Returns an unmodifiable map from capturing group names to group numbers.

    int

    start()

    Returns the start index of the match.

    int

    start(int group)

    Returns the start index of the subsequence captured by the given group during this match.

    default int

    Returns the start index of the subsequence captured by the given named-capturing group during the previous match operation.

  • Method Details

    • start

    • start

    • start

    • end

    • end

    • end

    • group

    • group

    • group

    • groupCount

    • namedGroups

    • hasMatch