Skip to contents

Extract Opposite by Regex

Usage

sf_nextract(s, p)

Arguments

s

<character> vector

p

<character> regex pattern

Value

<character> vector

Examples

sf_nextract(sf_c(LETTERS, 0:9), "[A-Z]")
#>  [1] "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"

sf_nextract(random_hcpcs(), "[A-Z]")
#>  [1] "6"     "1"     "29"    "64"    "76"    "028"   "970"   "672"   "339"  
#> [10] "328"   "249"   "368"   "453"   "3155"  "2066"  "8306"  "9905"  "1091" 
#> [19] "81203" "92511" "36576" "99214" "33870"