Fields Summary |
---|
public static final Pattern | TOP_LEVEL_DOMAIN_PATTERNRegular expression pattern to match all IANA top-level domains.
List accurate as of 2007/06/15. List taken from:
http://data.iana.org/TLD/tlds-alpha-by-domain.txt
This pattern is auto-generated by //device/tools/make-iana-tld-pattern.py |
public static final Pattern | WEB_URL_PATTERNRegular expression pattern to match RFC 1738 URLs
List accurate as of 2007/06/15. List taken from:
http://data.iana.org/TLD/tlds-alpha-by-domain.txt
This pattern is auto-generated by //device/tools/make-iana-tld-pattern.py |
public static final Pattern | IP_ADDRESS_PATTERN |
public static final Pattern | DOMAIN_NAME_PATTERN |
public static final Pattern | EMAIL_ADDRESS_PATTERN |
public static final Pattern | PHONE_PATTERNThis 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:
- Optionally, a + sign followed immediately by one or more digits. Spaces, dots, or dashes
may follow.
- Optionally, sets of digits in parentheses, separated by spaces, dots, or dashes.
- A string starting and ending with a digit, containing digits, spaces, dots, and/or dashes.
|