powered by
By using regular expressions, this function checks if a username is a valid email address.
is_valid_username(username = NULL)
TRUE if the username is valid, otherwise an error is thrown.
The username to be checked.
is_valid_username("john.doe@example.com") if (FALSE) { is_valid_username("invalid_username") is_valid_username("") is_valid_username(NULL) }
Run the code above in your browser using DataLab