combine_random_string_if_pattern: Conditionally return a random string

Description Usage Arguments Value

View source: R/combine.r

Description

Search for specified pattern in provided string; if found returns a 22 character long random string otherwise return original string.

Usage

1

Arguments

string

A character string.

regex

Character string regex specifying the pattern to look for in string.

Value

A length 1 character string vector: 22 character long random string if regex found in string, string otherwise.


bautheac/podcleaner documentation built on Jan. 14, 2022, 12:44 a.m.