Indicator function to return a {0, 1} integer value if there is a valid regex match for the given input string

ind_re_match(string, pattern)

Arguments

string

(character) : Input string to match regex against (must be a single element vector)

pattern

(character) : regex string pattern