Extract by Regex
Examples
sf_extract(sf_c(LETTERS, 0:9), "[A-Z]")
#> [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S"
#> [20] "T" "U" "V" "W" "X" "Y" "Z"
sf_extract(random_hcpcs(), "[A-Z]")
#> [1] "V" "S" "K" "E0" "G9" "G9" "L3" "L8" "G9"
#> [10] "E2" "J85" "J73" "A42" "S55" "Q204" "C978" "0013A" "H2041"
#> [19] "G9486" "G0451" "G9920"