Checks if a given string can be parsed as a Steam ID. Functions are defined for ID64, Steam2, Steam3, and vanity IDs.

is_steam64(x)

is_steam2(x)

is_steam3(x)

is_vanity(x)

Arguments

x

A character string that is to be checked.

Details

is_steam64 tests if a character string is a 64-bit representation of a decimal number. is_steam2 and is_steam3 test if x follows the string format of textual Steam ID representations as described here. is_vanity returns TRUE, if all other functions return FALSE.

Examples

if (FALSE) { # \dontrun{
is_steam64("76561197984981409", "12345") # TRUE, FALSE
is_steam2("STEAM_1:1:12357840", "STEAM_5:6:123") # TRUE, FALSE
is_steam3("[U:1:24715681]", "U:4:1234") # TRUE, FALSE
is_vanity("12345", "76561197984981409") # TRUE, FALSE
} # }