正则表达式匹配两个字符串
比如查找指定字符串里面是否有 abc 或者 def 。
------解决方案--------------------
PHP code
preg_match('/(abc|def)/', $string) 