[V4RB] ValentinaEscapeString is not esaping all regex chars

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Feb 6 15:17:39 CST 2004


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
-------------------------------------------------------------



More information about the Valentina mailing list