mirror of
https://github.com/briatte/awesome-network-analysis.git
synced 2024-10-01 01:06:13 -04:00
info about regex
This commit is contained in:
parent
2a0f02d1c3
commit
442692dcc0
3
check.r
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user