Merge pull request #68 from rtremeaud/patch-1

info about regex
This commit is contained in:
François Briatte 2018-10-21 18:14:17 +02:00 committed by GitHub
commit 053eb32dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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