^(+98|0)?9d{9}$ <?php var_dump(preg_match("/^(0)?9d{9}$/", "09159065674")); ?>
'^(+98|0|0098)?9d{9}$'