阅读背景:

使用preg_match_all查找带有转义撇号的字符串

来源:互联网 

I'm trying to preg_match_all a string that I'm getting from user input that has an apostrophe in it. First I tested it out on a regular string to see if it'll match or not, and it does. However, when I tried to test it out on the same user input string, it doesn't work. I think it's because the apostrophe in the user input gets escaped, before I compared them. I'm trying to preg_match_all a string that I'm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: