Escapestring not escaping ^
jda
jda at his.com
Mon Oct 31 10:47:22 CST 2005
> > I see that
>>
>> escapedWordToFind = Valentina.EscapeString(s, true)
>>
>> does not escape the ^ character (and so searches fail).
>>
>> Seems like a bug to me, but we've had disagreements before about
>> escaping for RegEx searches. Should I report this on Mantis?
>
>NO.
>
>I believe that we have close with Sergey all issues about escaping.
>
>* In fact parameter inForRegex is NOT used any more, and will be removed.
>
>* We should not escape ^
>
>IT IS your user (or your app) should escape that.
>
> "aaa\^"bbb -- this is what ME enter into BBEdit when I do regex
>
OK, I can do that (already done, in fact). But what exactly does
.escapestring do now? If we have to manually escape every affected
character, what purpose does it serve? I liked it when it did all the
necessary escaping for us (if I wanted the user to do the escaping, I
wouldn't call .escapestring, would I)?
Jon
More information about the Valentina-beta
mailing list