library(stringr)t_chart <- 'X201A61NA231.1W'str_replace_all(t_chart, '[a-zA-Z]+|\\.1','')
Standard input is empty
[1] "20161231"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!