<?php
$yourstring = "$15?1?2/:1$16E/:2$17?6?7/:6$19E/:7$3E/";
$regex = '~\$\K\d+~';
$count = preg_match_all($regex, $yourstring, $matches);
print_r($matches[0]);