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
- Re: [PHP] regex help Christian Reiniger
- [PHP] Regex Help Sheridan Saint-Michel
- RE: [PHP] Regex Help Erick Calder
- [PHP] encryption methods? Adrian Teasdale
- [PHP] regex help Alvin Tan
- RE: [PHP] regex help Jack Dempsey
- Re: [PHP] regex help Lasse
- [PHP] Regex help Stefen Lars
- [PHP] Re: Regex help Robin Vickery
- [PHP] regex help Gerard Samuel
- Re: [PHP] Regex Help Gerard Samuel
- Re: [PHP] Regex Help Marek Kilimajer
- [PHP] Regex Help Jim
- Re: [PHP] Regex Help Rick Emery
- Re: [PHP] Regex Help Jim
- Re: [PHP] Regex Help Rick Emery
- Re: [PHP] Regex Help Jim
- RE: [PHP] Regex Help John W. Holmes
- Re: [PHP] Regex Help Jim
- Re: [PHP] Regex Help Rick Emery
- [PHP] Regex Help Lord Loh.