Udostępnij za pośrednictwem


Patterns.ConcatGroups(Matcher) Method

Definition

Convenience method to take all of the non-null matching groups in a regex Matcher and return them as a concatenated string.

[Android.Runtime.Register("concatGroups", "(Ljava/util/regex/Matcher;)Ljava/lang/String;", "")]
public static string? ConcatGroups (Java.Util.Regex.Matcher? matcher);
[<Android.Runtime.Register("concatGroups", "(Ljava/util/regex/Matcher;)Ljava/lang/String;", "")>]
static member ConcatGroups : Java.Util.Regex.Matcher -> string

Parameters

matcher
Matcher

The Matcher object from which grouped text will be extracted

Returns

A String comprising all of the non-null matched groups concatenated together

Attributes

Remarks

Convenience method to take all of the non-null matching groups in a regex Matcher and return them as a concatenated string.

Java documentation for android.util.Patterns.concatGroups(java.util.regex.Matcher).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to