stringr icon indicating copy to clipboard operation
stringr copied to clipboard

Should str_extract() have a group argument?

Open hadley opened this issue 2 years ago • 0 comments

So str_extract(x, "pattern", group = 1) would be equivalent to str_match(x, "pattern")[, 2]

hadley avatar Jan 18 '22 21:01 hadley