Search notes:

R package: stringr

Show matching regular expression pattern

str_view highlights the matching portion of a regular expression pattern in a string.
library(stringr)

str_view('The number is 42, the text is "Hello world".', r'{\d+}')
Github repository about-R, path: /packages/stringr/str_view/show-number.R

Index