Thank you Andrew,
That seems to break up UTF-8 strings. So from there I will play with it.
On Jul 6, 2009, at 8:50 AM, Andrew Ballard wrote:
On Sun, Jul 5, 2009 at 9:54 PM, SleePy
wrote:
I seem to be having a minor issue with preg_replace not working as
expected
when using UTF-8 strings. So
I seem to be having a minor issue with preg_replace not working as
expected when using UTF-8 strings. So far I have found out that \w
doesn't seem to be detecting UTF-8 strings.
This is my test php file:
';
$data = preg_replace('~([\w\.]{6})~u', '$1 < >', $data);
echo 'Data After: ', $data;
2 matches
Mail list logo