[Gambas-user] Gambas 3.5.2 pre-release
Kende Krisztián
nemh at ...2007...
Tue Jan 7 14:47:40 CET 2014
2014-01-07 14:38 keltezéssel, Benoît Minisini írta:
> Le 07/01/2014 14:36, Kende Krisztián a écrit :
>> 2014-01-07 14:30 keltezéssel, Benoît Minisini írta:
>>> Le 07/01/2014 14:28, Benoît Minisini a écrit :
>>>> Le 07/01/2014 14:26, Kende Krisztián a écrit :
>>>>> 2014-01-07 14:21 keltezéssel, Kende Krisztián írta:
>>>>>> I found this Like operator bug:
>>>>>>
>>>>>> Print " " Like " "
>>>>> With double space:
>>>>>
>>>>> Print " " Like " "
>>>>>
>>>>>> or
>>>>>>
>>>>>> Print "a a" Like "* *"
>>>>>>
>>>>>> or... with double space
>>>>>>
>>>>>> Output: False
>>>>>>
>>>> Damn it. :-(
>>>>
>>> Actually, a single space in a pattern eats all corresponding spaces in
>>> the string. So two spaces in the pattern never match...
>>>
>> Never mind. I use this code:
>>
>> Print InStr(string, " ") = 0
>>
> If you want to match a single space, use "[ ]" in the pattern.
>
> Regards,
>
I want to find double or more space. But the Like with one space (Like
"* *") is works normally.
More information about the User
mailing list