<?php $str='0x0fc929cc'; $regex='/[0-9a-f]{3,5}(c+)$/i'; preg_match($regex,$str); if (preg_match($regex,$str,$matches)){ echo $matches[1];} else { echo 'b'; } ?>
You have javascript disabled. You will not be able to edit any code.