From 3ff4336ca5751ca68e5162b7aaff73af8e5d1520 Mon Sep 17 00:00:00 2001 From: Zhuoer Dong Date: Mon, 12 Nov 2018 23:55:21 +0800 Subject: [PATCH] 14.4 exercise of Detect matches should be 4th level heading (#727) --- strings.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.Rmd b/strings.Rmd index 86de4b5..84c697e 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -612,7 +612,7 @@ str_view_all("abababa", "aba") Note the use of `str_view_all()`. As you'll shortly learn, many stringr functions come in pairs: one function works with a single match, and the other works with all matches. The second function will have the suffix `_all`. -### Exercises +#### Exercises 1. For each of the following challenges, try solving it by using both a single regular expression, and a combination of multiple `str_detect()` calls.