All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liberologico.cloudesire.common.Regexp Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package com.liberologico.cloudesire.common;

public class Regexp
{
    public static final String INTERNET_DOMAIN = "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])(\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]))*$";

    /* https://www.mkyong.com/regular-expressions/how-to-validate-email-address-with-regular-expression/ */
    public static final String INTERNET_EMAIL = "^[_A-Za-z0-9-\\+\\.]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";

    public static final String A_POINT = "\\.";

    public static final String HEX_COLOR_LOWERCASE = "(^#[0-9a-f]{6}$)|(^#[0-9a-f]{3}$)";

    public static final String ALPHANUMERIC = "^[a-zA-Z0-9-]*$";

    private Regexp()
    {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy