正则过滤字符串中的正反斜杠
#源字符串$str = "a/b\c\\d//e\/f";#正则表达式...#过滤后$res = "abcdef";
$str = "a/b\c\\d//e\/f";echo preg_replace('/\W/', '', $str);