Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Filters Collection > Methods

EmEditor Macro Reference: AddReplace Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Filters Collection

AddReplace Method

Adds an item for a replace.

[JavaScript]

list.AddReplace( strFind, strReplace, nFlags, nExFlags );

[VBScript]

list.AddReplace( strFind, strReplace, nFlags, nExFlags )

Parameters

strFind

Specifies a string to search for.

strReplace

Specifies a string to replace with.

nFlags

Specifies a combination of the following values.

eeFindReplaceCase

Matches cases.

eeFindReplaceEscSeq

Uses escape sequences. Cannot be combined with eeFindReplaceRegExp.

eeFindReplaceOnlyWord

Matches only whole words.

eeFindReplaceRegExp

Uses a regular expression for the searched string. Cannot be combined with eeFindReplaceEscSeq.

nExFlags

Specifies a combination of the following values.

eeExFindNumberRange

Matches a number range expression. This flag cannot be combined with eeFindReplaceEscSeq or eeFindReplaceRegExp.

Version

Supported on EmEditor Professional Version 19.9 or later.

Copyright © 2003-2021 by Emurasoft, Inc.