通过preg_match传递带有元字符的变量?

| 我已经尝试了三个小时来传递这些变量(字符串) 通过preg_match。我已经尝试了一切。 preg_quote只会使他们更糟。
\".html\">\";

\"</a> (<a\";
你会以为
\"/.html/\">\";   and

\"</a> /(<a\"; would work but no
    
已邀请:
使用
preg_quote()
,并将第二个参数设置为您的正则表达式定界符。     

要回复问题请先登录注册