3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'categoryparameterusedpricing_15'; // look for a match preg_match("/[categoryparameterusedpricing_\d]/", $string, $matches); echo $matches[1];

preferences:
49.09 ms | 402 KiB | 5 Q