Multilne search and replace

SyntaxEditor for WPF Forum

Posted 12 years ago by 7Alpha7
Version: 12.1.0560


the ActiproSoftware.Text.Searching namespace provides interesting low level search and replace operations but I would like to know if it could handle "as is" multiline search ans replace operations, say, if I provide search and replace strings with LF inside ?

For instance, I could have

using a;
using b;
using c;

with any line break characters to replace with

using x;
using y;

  in a single operation. Is it possible, or must I implement the parsing of the multiline string myself to break it in several single lines search and replace operations ?

Thank you.

[Modified 12 years ago]

Comments (2)

Answer - Posted 12 years ago by 7Alpha7

Finally I found it to be possible by the use of the RegularExpression SearchPatternProvider.

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA


I believe it will work fine with multi-line normal search as well, as long as your line terminators are \n (LF) characters.

Actipro Software Support

The latest build of this product (v24.1.2) 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.