echo "W32i APP - 8.0.0.12345 shp 6SFE25~1.EXE"|perl -lne 'm/(\d{5})/g;print $1'
Standard input is empty
12345
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!