标签: php
我有一个像test@gmail.com这样的字符串,我想要检测它不包含单引号或双引号。为什么以下代码无效?
test@gmail.com
preg_match('[\'|\"]', $textData) ? true : false;