Udostępnij za pośrednictwem


Patterns.DigitsAndPlusOnly(Matcher) Method

Definition

Convenience method to return only the digits and plus signs in the matching string.

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

Parameters

matcher
Matcher

The Matcher object from which digits and plus will be extracted

Returns

A String comprising all of the digits and plus in the match

Attributes

Remarks

Convenience method to return only the digits and plus signs in the matching string.

Java documentation for android.util.Patterns.digitsAndPlusOnly(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