Pick element in vector base on regex

pick(x, pat, ...)

Arguments

x

vector

pat

regex pattern

...

extra args to grep