[V4RB] ValentinaEscapeString is not esaping all regex chars
Stan Busk
maxprog at mac.com
Fri Feb 6 14:34:34 CST 2004
Hi,
< > can be used for look-behind assertions but I am not sure if they
need to be escaped as they use to be preceded with a '?'. The '$' is
the regex end of line.
~/Stan
> on 2/6/04 2:51 PM, Stan Busk at maxprog at mac.com wrote:
>
>> Hi,
>>
>> It seems ValentinaEscapeString is not working properly (At least not
>> for me). For example I am looking for records containing the
>> '<bvrou9$fjl$1+0100 at news.ya.com>' string (without quotes).
>>
>> ValentinaEscapeString(mystring, True) returns:
>> <bvrou9$fjl$1+0100 at news\.ya\.com>
>> rather than: \<bvrou9\$fjl\$1\+0100 at news\.ya\.com\>
>>
>> Currently my function is escaping following chars: +-*/=%<>()[].$'^?&
>>
>> If I use my function 'SQlSelect' with 'like' returns the right result.
>> If I use ValentinaEscapeString(mystring, True), I get no records.
>
> Thank you for info, Stan.
>
> But does < > $ are REGEX SYNTAX symbols?
> I do not remember them.
>
>
>
> --
> Best regards,
> Ruslan Zasukhin [ I feel the need...the need for speed ]
> -------------------------------------------------------------
> e-mail: ruslan at paradigmasoft.com
> web: http://www.paradigmasoft.com
>
> To subscribe to the Valentina mail list go to:
> http://lists.macserve.net/mailman/listinfo/valentina
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
More information about the Valentina
mailing list