fork download
  1. <?php
  2. $yourstring = "$15?1?2/:1$16E/:2$17?6?7/:6$19E/:7$3E/";
  3. $regex = '~\$\K\d+~';
  4. $count = preg_match_all($regex, $yourstring, $matches);
  5. print_r($matches[0]);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 15
    [1] => 16
    [2] => 17
    [3] => 19
    [4] => 3
)