DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+7 =
Submit