Search for specified pattern in provided string; if found returns a 22 character long random string otherwise return original string.
combine_random_string_if_pattern(string, regex)A character string.
Character string regex specifying the pattern to look for in
string.
A length 1 character string vector: 22 character long random string
if regex found in string, string otherwise.