求大神幫看看
<?php
$subject = "my email is [email protected]";
//在這里補充代碼,實現正則匹配,并輸出郵箱地址
$p = '/\w+@\w+\.\w+)/';
preg_match($p,$subject,$matches);
print_r($matches[1]);
哪里的問題啊
<?php
$subject = "my email is [email protected]";
//在這里補充代碼,實現正則匹配,并輸出郵箱地址
$p = '/\w+@\w+\.\w+)/';
preg_match($p,$subject,$matches);
print_r($matches[1]);
哪里的問題啊
2016-10-22
舉報
2016-11-22
$p 里 只有一個)符號 ?是準備匹配‘)’符號嗎?還是忘記寫‘(’ 這個符號了
2016-11-15
你試一下,我的編譯通過了
2016-11-02
$pattern = '/[my email is ](\w+@\w+\.\w+)/';
preg_match($pattern,$subject,$matches);
print_r($matches[1]);