如何使用正则表达式匹配不包含点(.)的字符串?

iva*_*n73 1 php string nginx

如何使用正则表达式匹配不包含点(.)的字符串?

gho*_*g74 8

为什么正则表达式?

$str="string_with_no_dots";
if (  strpos ($str,"." ) === FALSE ){
 print "ok, no dots\n";
}
Run Code Online (Sandbox Code Playgroud)