is_valid_username {consibiocloudclient} | R Documentation |
By using regular expressions, this function checks if a username is a valid email address.
is_valid_username(username = NULL)
username |
The username to be checked. |
TRUE if the username is valid, otherwise an error is thrown.
is_valid_username("john.doe@example.com")
## Not run:
is_valid_username("invalid_username")
is_valid_username("")
is_valid_username(NULL)
## End(Not run)