這樣輸出也是錯誤的么。 $pattern = '/\w{4}\@\w+\.\w+/'; 正確的怎么寫呢。
$subject = "my email is [email protected]"; //在這里補充代碼,實現正則匹配,并輸出郵箱地址
?$pattern = '/\w{4}\@\w+\.\w+/';?
preg_match($pattern,$subject,$matches);?
print_r($matches);?
?為什么提示輸出錯誤
$subject = "my email is [email protected]"; //在這里補充代碼,實現正則匹配,并輸出郵箱地址
?$pattern = '/\w{4}\@\w+\.\w+/';?
preg_match($pattern,$subject,$matches);?
print_r($matches);?
?為什么提示輸出錯誤
2016-05-26
舉報
2016-05-26
正則表達式寫的有問題
$pattern ='/^(\w+@)\w+\.\w+/i'
2022-03-24
等你把HTML+CSS所有內容學完就應該能弄一個靜態的頁面了可能因為?<lable>里的for屬性與之對應<input>里的id?有關系
2017-03-15
你輸入的字符長度是4,