From 442692dcc0f8595f423ee6f41c66f210a7273bce Mon Sep 17 00:00:00 2001 From: rtremeaud Date: Sat, 20 Oct 2018 11:18:59 +0200 Subject: [PATCH] info about regex --- check.r | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check.r b/check.r index bd4356a..d56be62 100755 --- a/check.r +++ b/check.r @@ -34,7 +34,8 @@ if (!file.exists(f)) { l <- c( # [foo](bar) - str_extract_all(u, "\\(http(.*?)\\)") %>% + str_extract_all(u, "\\(http(.*?)\\)") %>% # using regular expression see https://gist.github.com/vitorbritto/9ff58ef998100b8f19a0 + # for more infos lapply(str_replace_all, "^\\(|\\)$", "") %>% unlist, # [foo]: bar