fork download
  1. library(stringr)
  2. t_chart <- 'X201A61NA231.1W'
  3. str_replace_all(t_chart, '[a-zA-Z]+|\\.1','')
Success #stdin #stdout 0.28s 42500KB
stdin
Standard input is empty
stdout
[1] "20161231"