Closed zkamvar closed 5 years ago
This adds a default anchor_regex = TRUE, which will wrap the regular expressions in ^ and $ before processing:
anchor_regex = TRUE
^
$
linelist::clean_spelling(c("food", "foo"), data.frame(".regex foo", "bar")) #> [1] "food" "bar" linelist::clean_spelling(c("food", "foo"), data.frame(".regex foo", "bar"), anchor_regex = FALSE) #> [1] "bard" "bar"
Created on 2019-05-31 by the reprex package (v0.3.0)
This adds a default
anchor_regex = TRUE
, which will wrap the regular expressions in^
and$
before processing:Created on 2019-05-31 by the reprex package (v0.3.0)