日期:2014-05-17  浏览次数:20453 次

正则表达式匹配两个字符串
比如查找指定字符串里面是否有 abc 或者 def 。

------解决方案--------------------
PHP code
preg_match('/(abc|def)/', $string)