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
?