From 6d4854e686675022b12e44b59357a813734834ef Mon Sep 17 00:00:00 2001 From: Jonathan Kitt Date: Fri, 17 Mar 2023 16:30:32 +0100 Subject: [PATCH] Fixed typos (#1376) --- regexps.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}