Sorry, I forgot to follow-up yesterday.
Assuming you're using PHP to process the entries, you could use:
PHP Code:
$text = preg_replace_callback('/[\\w\'-]{26,}/g',
create_function('$matches',
'return implode(\' \', str_split($matches[0], 25));'),
$text);
which would break up 'words'[1] that are 26 characters or longer using spaces.
If you want to just check for long words, then
PHP Code:
if(preg_match('/[\\w\'-]{26,}/', $text)) {
/* Long words */
}
would accomplish that.
Mike
[1] In this case, a 'word' would be any sequence of characters that contains letters, numbers, underscores (_), hyphens (-), or apostrophes (').
Bookmarks