<?php

$str = '/something-new/:id/goto/:new_id/full/page/:num/';
preg_match_all('~:(.*?)/~', $str, $matches);
print_r($matches[1]);