Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R extract regex from string

library(stringr)

x <- "aaaaa345aaa"
str_extract(x, "[1-9]+")
# [1] "345"
Source by stringr.tidyverse.org #
 
PREVIOUS NEXT
Tagged: #R #extract #regex #string
ADD COMMENT
Topic
Name
2+7 =