Im trying to explode a string into an array of words using ->
$title = preg_split('/[^\w\']/', $title, -1, PREG_SPLIT_NO_EMPTY );

It seems to work well with words like "this" and "don't" but it doens't work with words with accents to it like
"Guantánamo"
Could my regex be expanded to handle non-english type characters, or any workarounds to get a string into an array of words,
where the string contains non english characters??

Thanks

--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to