我正在編寫一個用於匹配Code ussing preg匹配所有標記的php。使用preg匹配的代碼匹配全部
這裏是我的php代碼。
preg_match_all('|SentSmsId(\d*?)&noOfMessages|i', $data, $code);
echo「$ code」;
這裏是html代碼。
<a href="sentSms.php?zxcoiesesscd=&SentSmsId=8830978&NoOfMessages=" style="text-decoration:none;"
我想匹配sentsmsid代碼並回顯它。
但不起作用。
怎麼了?
謝謝...我錯過了它... :) – 2013-05-13 10:10:17
很高興幫助你:) – Rikesh 2013-05-13 10:11:10