Android Guides | Samples

Android.Util.Patterns Class

Commonly used regular expression patterns.

See Also: Patterns

Syntax

[Android.Runtime.Register("android/util/Patterns", DoNotGenerateAcw=true)]
public class Patterns : Object

Remarks

Commonly used regular expression patterns.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

The members of Android.Util.Patterns are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
GoodIriCharString. Good characters for Internationalized Resource Identifiers (IRI).
const
TopLevelDomainStrString. Regular expression to match all IANA top-level domains.
const
TopLevelDomainStrForWebUrlString. Regular expression to match all IANA top-level domains for WEB_URL.

Public Properties

[read-only]
static
DomainNamePattern.
[read-only]
static
EmailAddressPattern.
[read-only]
static
IpAddressPattern.
[read-only]
static
PhonePattern. This pattern is intended for searching for things that look like they might be phone numbers in arbitrary text, not for validating whether something is in fact a phone number.
[read-only]
static
TopLevelDomainPattern. Regular expression pattern to match all IANA top-level domains.
[read-only]
static
WebUrlPattern. Regular expression pattern to match most part of RFC 3987 Internationalized URLs, aka IRIs.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
ConcatGroups(Matcher) : String
Convenience method to take all of the non-null matching groups in a regex Matcher and return them as a concatenated string.
static
DigitsAndPlusOnly(Matcher) : String
Convenience method to return only the digits and plus signs in the matching string.