views:

35

answers:

3

I've been using "/x{201C}/u" and "/x{201D}/u" to match them, but there's no result.

Am I doing something wrong??

A: 

Oh.. shoot! that's a stupid question... '|“|' and "|”|" works!

mmhan
A: 

Have you tried

\x8c and \x9d

Those have worked for me.

Joshmattvander
A: 

if your requirement is that simple as just finding double quotes, just use PHP's string methods

$str='mystring_with_"_blah';
if ( strpos($str,'"') !==FALSE){
    print "Found double quotes\n";
}
ghostdog74