public class CommonPattern extends Object
Before conducting regular expression verification on common patterns, you need to use the methods in this class to obtain the matched regular expressions first.
| 构造器 | 说明 |
|---|---|
CommonPattern() |
Default constructor used to create an instance
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Pattern |
getDomainName() |
Obtains the regular expression for verifying domain names.
|
static Pattern |
getEmailAddress() |
Obtains the regular expression for verifying email addresses.
|
static Pattern |
getIpAddress() |
Obtains the regular expression for verifying IPv4 addresses.
|
static Pattern |
getWebUrl() |
Obtains the regular expression for verifying web URLs.
|
public static Pattern getWebUrl()
public static Pattern getIpAddress()
public static Pattern getDomainName()
public static Pattern getEmailAddress()