一個只取字符串後的數字的正則表達式

 

 

 <?php  $s = "硬蛋網-15329018170";  preg_match('/\d*$/',$s,$res);  //print ($res[0]);    echo $res[0]; ?> 
相關文章
相關標籤/搜索