[VSDK] MakeSearch and regex

Arthur Clemens aclemens at xs4all.nl
Fri Jan 2 11:53:04 CST 2004


On Jan 2, 2004, at 11:42, Ruslan Zasukhin wrote:

> on 1/2/04 12:38 PM, Arthur Clemens at aclemens at xs4all.nl wrote:
>
>> Hi Ruslan
>>
>> In the manual I read:
>>
>> To make case insensitive RegEx search you can specify switch (-i) in
>> the match string: “==(?i)I AM CASE INSENSITIVE(?-I)I am Case 
>> Sensitive”
>>
>> Is this correct? With parentheses and question marks?
>> So if I am looking for words with either 'AA' or 'Aa' or 'aa' I should
>> use:
>> ==(?i)aa(?-I)
>>
>> but I can't get it to work like this. I get zero results each time.
>
> Hi Arthur,
>
> You can look into FAQ also.
> There are good examples there.

OK, I see I have to use single quotes, like
=='(?i)aa'

It works now.

Note that the quotes are not in the manual (VSDK Reference p. 27).

>
> You use SQL or low level API?
>
> With SQL you can also do WHERE fld LIKE 'Aa' no_case

Yes, that is simple to use.

Arthur



More information about the Valentina mailing list