<?php var_dump(preg_match('~\d{4,8}\sруб\b~', '50000 рублей', $rg), $rg);
You have javascript disabled. You will not be able to edit any code.