Learn R Programming

consibiocloudclient (version 1.0.0)

is_valid_username: Check if a username is valid.

Description

By using regular expressions, this function checks if a username is a valid email address.

Usage

is_valid_username(username = NULL)

Value

TRUE if the username is valid, otherwise an error is thrown.

Arguments

username

The username to be checked.

Examples

Run this code
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