Fixed regular expression - Bug 2756 (SE)

This commit is contained in:
moodler 2005-03-19 15:08:36 +00:00
parent de680e7097
commit 4161807b81

View file

@ -85,7 +85,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
/// Remove tags from $text
$tags = array();
preg_match_all('/<[^\#](.+?)[^\#]>/is',$text,$list_of_tags);
preg_match_all('/<[^\#](.*?)>/is',$text,$list_of_tags);
foreach (array_unique($list_of_tags[0]) as $key=>$value) {
$tags['<|'.$key.'|>'] = $value;
}