gsub("([a-z]+)([0-9]+)","\\2","ytu678yu")
[1] "678yu"
gsub("([a-z]+)([0-9]+)(.*)","\\2","ytu678yu")
[1] "678"
不知为何 gsub("([a-z]+)([0-9]+)","\\2","ytu678yu")
拿不到678
?
gsub("([a-z]+)([0-9]+)","\\2","ytu678yu")
[1] "678yu"
gsub("([a-z]+)([0-9]+)(.*)","\\2","ytu678yu")
[1] "678"
不知为何 gsub("([a-z]+)([0-9]+)","\\2","ytu678yu")
拿不到678
?