IT. Expert System.

Android Reference

MatchResult


java.util.regex

Interface MatchResult

  • All Known Implementing Classes:
    Matcher


    public interface MatchResult
    Holds the results of a successful match of a Pattern against a given string. The result is divided into groups, with one group for each pair of parentheses in the regular expression and an additional group for the whole regular expression. The start, end, and contents of each group can be queried.
    See Also:
    Matcher, Matcher.toMatchResult()
    • Method Summary

      Methods
      Modifier and Type Method and Description
      int end()
      Returns the index of the first character following the text that matched the whole regular expression.
      int end(int group)
      Returns the index of the first character following the text that matched a given group.
      String group()
      Returns the text that matched the whole regular expression.
      String group(int group)
      Returns the text that matched a given group of the regular expression.
      int groupCount()
      Returns the number of groups in the result, which is always equal to the number of groups in the original regular expression.
      int start()
      Returns the index of the first character of the text that matched the whole regular expression.
      int start(int group)
      Returns the index of the first character of the text that matched a given group.
    • Method Detail

      • end

        int end()
        Returns the index of the first character following the text that matched the whole regular expression.
        Returns:
        the character index.
      • end

        int end(int group)
        Returns the index of the first character following the text that matched a given group.
        Parameters:
        group - the group, ranging from 0 to groupCount() - 1, with 0 representing the whole pattern.
        Returns:
        the character index.
      • group

        String group()
        Returns the text that matched the whole regular expression.
        Returns:
        the text.
      • group

        String group(int group)
        Returns the text that matched a given group of the regular expression.
        Parameters:
        group - the group, ranging from 0 to groupCount() - 1, with 0 representing the whole pattern.
        Returns:
        the text that matched the group.
      • groupCount

        int groupCount()
        Returns the number of groups in the result, which is always equal to the number of groups in the original regular expression.
        Returns:
        the number of groups.
      • start

        int start()
        Returns the index of the first character of the text that matched the whole regular expression.
        Returns:
        the character index.
      • start

        int start(int group)
        Returns the index of the first character of the text that matched a given group.
        Parameters:
        group - the group, ranging from 0 to groupCount() - 1, with 0 representing the whole pattern.
        Returns:
        the character index.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 992 / 158715084. Delta: 0.02932 с