Close

Regex - Java Regex Examples

Regex Java 

    private static final Pattern VALID_EMAIL_PATTERN =
Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$",
Pattern.CASE_INSENSITIVE);
Original Post




    private static final Pattern VALID_PASSWORD_PATTERN =
Pattern.compile("^[a-zA-Z0-9]{6,}$");
Original Post




See Also