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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php