View Single Post
Old 09-20-2003, 12:54 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hallo. Die PhpDig 1.6.2 Version von Funktion phpdigEpureText ist wie folgt:
PHP Code:
function phpdigEpureText($text$min_word_length=2$encoding=PHPDIG_ENCODING) {
global 
$phpdig_words_chars;

$text phpdigStripAccents(strtolower ($text));
//no-latin upper to lowercase - now islandic
switch (PHPDIG_ENCODING) {
   case 
'iso-8859-1':
   
$text strtr$text,'ÐÞ','ðþ');
   break;
}
$text ereg_replace('[[:blank:]][0-9]+[[:blank:]]'' 'ereg_replace('[^'.$phpdig_words_chars[$encoding].'._&%/-]+'' '$text));
$text ereg_replace('[[:blank:]][^ ]{1,'.$min_word_length.'}[[:blank:]]'' '' '.$text.' ');
$text ereg_replace('\.+[[:blank:]]|\.+$|\.{2,}'' '$text);
return 
trim(ereg_replace("[[:blank:]]+"," ",$text));

Diese Funktion läßt Sie auf Zahlen (Versuch es hier) suchen und, in config.php, können Sie die Wortgröße einstellen, um zu ignorieren.

Hoffen Sie, daß mein Deutsch lesbar ist.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote