diff --git a/regexps.qmd b/regexps.qmd index 912a296..77dfef1 100644 --- a/regexps.qmd +++ b/regexps.qmd @@ -484,7 +484,7 @@ sentences |> str_view() ``` -If you want extract the matches for each group you can use `str_match()`. +If you want to extract the matches for each group you can use `str_match()`. But `str_match()` returns a matrix, so it's not particularly easy to work with[^regexps-8]: [^regexps-8]: Mostly because we never discuss matrices in this book! @@ -554,7 +554,7 @@ str_match(x, "gr(?:e|a)y") ## Pattern control It's possible to exercise extra control over the details of the match by using a pattern object instead of just a string. -This allows you control the so called regex flags and match various types of fixed strings, as described below. +This allows you to control the so called regex flags and match various types of fixed strings, as described below. ### Regex flags {#sec-flags}