Regex Help
| From: | Gerard Samuel | Date: | Tue, 29 Oct 2002 17:11:38 +0000 |
| Subject: | Regex Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121904@lists.php.net to get a copy of this message | ||
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/