<?php $str = '/something-new/:id/goto/:new_id/full/page/:num/';preg_match_all('~:(.*?)/~', $str, $matches);print_r($matches[1]);
Standard input is empty
Array ( [0] => id [1] => new_id [2] => num )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!