is_valid_username {consibiocloudclient}R Documentation

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)

Arguments

username

The username to be checked.

Value

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

Examples

is_valid_username("john.doe@example.com")
## Not run: 
is_valid_username("invalid_username")
is_valid_username("")
is_valid_username(NULL)

## End(Not run)


[Package consibiocloudclient version 1.0.0 Index]