Answers for "regex last word in string r"

R
0

regex last word in string r

library(stringr)

sentence <- "The quick brown fox"
word(sentence,-1)
[1] "fox"
Posted by: Guest on December-03-2020

Code answers related to "regex last word in string r"

Browse Popular Code Answers by Language