From a420ab52a19592d0681faf58d29359073eb9eacc Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 2 Jan 2003 15:46:34 +0000 Subject: [PATCH] regex for word splitting on search was failing to pick up on numerals git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3251 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_search.php b/phpBB/includes/functions_search.php index 3cad94092e..07b9ec9e3e 100644 --- a/phpBB/includes/functions_search.php +++ b/phpBB/includes/functions_search.php @@ -91,7 +91,7 @@ function clean_words($mode, &$entry, &$stopword_list, &$synonym_list) function split_words(&$entry, $mode = 'post') { - $rex = ( $mode == 'post' ) ? "/\b([\w±µ-ÿ][\w±µ-ÿ']*[\w±µ-ÿ]+|[\w±µ-ÿ]+?)\b/" : '/(\*?[a-z±µ-ÿ]+\*?)|\b([a-z±µ-ÿ]+)\b/'; + $rex = ( $mode == 'post' ) ? "/\b([\w±µ-ÿ][\w±µ-ÿ']*[\w±µ-ÿ]+|[\w±µ-ÿ]+?)\b/" : '/(\*?[a-z0-9±µ-ÿ]+\*?)|\b([a-z0-9±µ-ÿ]+)\b/'; preg_match_all($rex, $entry, $split_entries); return $split_entries[1];