rx_break | R Documentation |
Wrap a word in word boundary (\\b
) characters. Useful when combined with
stringr::str_which()
and stringr::str_detect()
to match only entire words
and not that word inside another word (e.g., "sting" and "testing").
rx_break(pattern)
pattern |
A regex pattern (a word) to wrap in |
The a glue vector of pattern
wrapped in \\b
.
rx_break("test")
rx_break(state.abb[1:5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.