str_extract | R Documentation |
DEPRECATION: moved to agdamsbo/project.aid
str_extract(d, pattern)
d |
vector of character strings |
pattern |
regex pattern to match |
Use base::strsplit to
vector of character strings
ls <- do.call(c,lapply(sample(4:8,20,TRUE),function(i){
paste(sample(letters,i,TRUE),collapse = "")}))
ds <- do.call(c,lapply(1:20,function(i){
paste(sample(ls,1),i,sample(ls,1),"23",sep = "_")}))
str_extract(ds,"([0-9]+)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.