stringnum = '0007001369920090687073'result = stringnum[/(?<=000)\d{9}/]puts result
Standard input is empty
700136992
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!