原文:Regex to match alphanumeric characters, underscore, periods and dash, allowing dot and dash only in the middle
目前,我使用这个:如果(preg_match (/ {(a- zA-ZA-Z0- 9_)]+([a- zA-Z0- 9_]**.**?[a- zA-Z0-9_]**[a- zA-Z0- 9_]+$/, $product)) {返回真实的 {( ) {其他 { 返回假的} 例如,我想...