<?php $str = "25 Park Street 15000 My city"; preg_match('/\d\s*(\D+)$/', $str, $matches);print_r($matches[1]);
Standard input is empty
My city
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!