<?php $loc = "E123S5";$locs = array();preg_match_all('/[A-Z]([0-9]+)/', $loc, $locs);print_r($locs[1]);
Standard input is empty
Array ( [0] => 123 [1] => 5 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!