words for pspell
| From: | Tom Kincaid | Date: | Sat, 02 Mar 2002 17:29:54 +0000 |
| Subject: | words for pspell | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86899@lists.php.net to get a copy of this message | ||
I'm trying to use pspell for a forum. It works great, but I can't quite figure out how to pull individual words out of a string for it. preg_match ("/\b.+?\b/", $text, $matches) works almost perfectly, EXCEPT apostrophes are word boundaries so the string "Shouldn't this work?" would have "Shouldn" as the first word. Has anyone ever implemented something like this? Any advice?
THanks for this and thanks to everyone who helped with the preg_replace. It was actually part of this.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx