Logical Function checking for trailing patterns

has_trailing_pattern(strings, pattern)

Arguments

pattern

expression in a non-regex format that is automatically converted to the pattern$ in the function