java.lang.Object | |
↳ | android.util.Patterns |
Commonly used regular expression patterns.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | GOOD_IRI_CHAR | Good characters for Internationalized Resource Identifiers (IRI). | |||||||||
String | TOP_LEVEL_DOMAIN_STR | Regular expression to match all IANA top-level domains. | |||||||||
String | TOP_LEVEL_DOMAIN_STR_FOR_WEB_URL | Regular expression to match all IANA top-level domains for WEB_URL. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
DOMAIN_NAME | ||||||||||
|
EMAIL_ADDRESS | ||||||||||
|
IP_ADDRESS | ||||||||||
|
PHONE | 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. | |||||||||
|
TOP_LEVEL_DOMAIN | Regular expression pattern to match all IANA top-level domains. | |||||||||
|
WEB_URL | Regular expression pattern to match most part of RFC 3987 Internationalized URLs, aka IRIs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Convenience method to take all of the non-null matching groups in a
regex Matcher and return them as a concatenated string.
|
||||||||||
|
Convenience method to return only the digits and plus signs
in the matching string.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Good characters for Internationalized Resource Identifiers (IRI). This comprises most common used Unicode characters allowed in IRI as detailed in RFC 3987. Specifically, those two byte Unicode characters are not included.
Regular expression to match all IANA top-level domains. List accurate as of 2011/07/18. List taken from: http://data.iana.org/TLD/tlds-alpha-by-domain.txt This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py
Regular expression to match all IANA top-level domains for WEB_URL. List accurate as of 2011/07/18. List taken from: http://data.iana.org/TLD/tlds-alpha-by-domain.txt This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py
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. It will miss many things that are legitimate phone numbers.
The pattern matches the following:
Regular expression pattern to match all IANA top-level domains.
Regular expression pattern to match most part of RFC 3987 Internationalized URLs, aka IRIs. Commonly used Unicode characters are added.
Convenience method to take all of the non-null matching groups in a regex Matcher and return them as a concatenated string.
matcher | The Matcher object from which grouped text will be extracted |
---|
Convenience method to return only the digits and plus signs in the matching string.
matcher | The Matcher object from which digits and plus will be extracted |
---|