[Gambas-user] Gambas 3.5.2 pre-release
Benoît Minisini
gambas at ...1...
Tue Jan 7 14:38:10 CET 2014
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,
--
Benoît Minisini
More information about the User
mailing list