I was trying to use preg_replace on a string but I obtain a wrong result.
$string = "Da venerdì 26 agosto a lunedì 5 settembre 2011";
$string = preg_replace('/\p{L}+/s','',$string);
should return " 26 5 2011 " but it returns " ¬ 26 ¬ 5 2011 "
*note in my local php server on Windows XP all works fine but in my remote php server on Debian it retunrs me the wrong string
Can you help me?
iflag ... the¬symbol might be an uppercase letter :-Dmbstring.func_overload = 7in your php.ini to use the multibyte function-replacements in PHP.