问题描述
根据 ,GetNormalizedStrings 将删除一些字符,包括加号(+),
但加号也是广泛匹配的修改者。现在GetNormalizedStrings 也会删除加号。这是测试结果:
$ strings = array();
$ strings [] ='红色粉丝';
$ strings [] ='+ red + follower';
在调用GetNormalizedStrings后,它返回:
array(2){
[0] =>
string(12)"red follower"
[1] =>
string(12)"red follower"
}
有没有办法让GetNormalizedStrings 使用加号?
Hi,
according http://msdn.microsoft.com/en-US/library/aa983141 , GetNormalizedStrings will remove some characters, include the plus(+),
but the plus also is a modiffier for broad match. now the GetNormalizedStrings will remove the plus also. here is the test result:
$strings = array();
$strings[] = 'red follower';
$strings[] = '+red +follower';
after called GetNormalizedStrings, it returned:
array(2) {
[0]=>
string(12) "red follower"
[1]=>
string(12) "red follower"
}
is there any way to make GetNormalizedStrings work with the plus sign?
这篇关于如何使GetNormalizedStrings与广泛的匹配midiffier一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!