Regex 匹配字母数字字符、 下划线、 时段和破折符, 允许点与破折符只在中间
原文:Regex to match alphanumeric characters, underscore, periods and dash, allowing dot and dash only in the middle
原文: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)) {返回真实的 {( ) {其他 { 返回假的} 例如,我想...