Find and replace XXX. replaces XXX\.

SyntaxEditor for WPF Forum

Posted 14 years ago by Steve GW
Version: 9.2.0514
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
Avatar
When using basic find and replace for example

EditorSearchOptions options = new EditorSearchOptions();
options.FindText = find;
options.ReplaceText = replace;
options.PatternProvider = SearchPatternProviders.Normal;

options.Scope = EditorSearchScope.Document;
options.MatchWholeWord = true;

and find = XXX. 20
and replace = XXX. 30

The replace result becomes XXX\. 30

which to me is odd
is there some syntax causing this it should be XXX. 30

or is it a strange bug


Steve

Comments (2)

Posted 14 years ago by Steve GW
Avatar
I thought I understood what the problem was but that is not the case

If seems the period is changing the behaviour of the replacement and it add a backslash to the replacement. Why I don't know yet. If anybody has an idea let me know

I just tried XXX, and the replacement works fine. So somewhere the syntax is making a decision about the period.



[Modified at 02/06/2010 09:49 AM]
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Steve,

Thanks for the note, it appears to be a bug introduced by a fix we did in the previous build. We've fixed it for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.