sakura/en/Replace

Last-modified: 2019-02-18 (月) 16:58:07

Replace

The dialog for the character string substitution is opened.
The character string is substituted.
The option also in the "Find" is the same as the "Find".

[Before Replace] EditBox

The character string before it substitutes it is specified.

[After Replace] EditBox

The character string afterit substitutes it is specified.

[Paste from Clipboard] CheckBox (default: Non-Checked)

It substitutes it by the text of the clipboard instead of the character string after it substitutes it.

[Looks for Wording] CheckBox (default: Non-Checked)

[Case Sensitive] CheckBox (default: Non-Checked)

[Regular Expression] CheckBox (default: Non-Checked) [heart]

["Replace All" is Repetition of Replace] CheckBox (default: Non-Checked)

(sakura:1.5.15.0 or later)

Only when the regular expression is used, it is possible to specify it.
It corresponds to the switch function of Old "Replace All" and "Line Replace All".

[Show Message when Not Found] CheckBox (default: Checked)

[Auto Close Replace Dialog] CheckBox (default: Checked)

[Find from Head (End) Again] CheckBox (default: Non-Checked)

Replace Target

The treatment of the character string before it substitutes it and the character string after it substitutes it is set.

[Selection String] CheckBox (default: Checked)

It replaces it with the character string after the character string before it substitutes it is substituted.

[Selection Starting Point Insertion] CheckBox (default: Non-Checked)

The character string after it substitutes it ahead of the character string before it substitutes it is inserted.

[Selection Terminal Addition] CheckBox (default: Non-Checked)

The character string after it substitutes it after the character string before it substitutes it is added.

Range

[Selection Range] RadioButton (default: Non-Checked)

[Entire File] RadioButton (default: Non-Checked)

[Prev Find] Button

It retrieves ahead of the cursor position.

[Next Find] Button

The back of the cursor position is retrieved.

[Mark Pertinent Line] Button

All retrieved lines are set to the bookmark.

[Replace] Button

The retrieval word found by the retrieval in the under is substituted, and it moves to the following retrieval word.

[Replace All] Button

All the retrieval words found in the entire file are substituted.

[Line Replace All] Button

All the retrieval words found in the entire file are substituted. (sakura:1.5.10.0 or later)
It became an option from sakura:1.5.15.0.

[hatena] Hint:
As for "Replace All", when the option of the repetition of substitution deletes the pattern including positional specification (head of line specification ^ and word district switching off specification \b)(The character string after it substitutes it is the sky), the result is different.

(^_- Example: When you replace "^ab" for "" for "ababab"

  • When it is effective : "ababab" is deleted.
  • At invalidity : Only "ab" at the head of line is deleted.

[heart] Because the regular expression has been achieved by the free software named BREGEXP.DLL (Or, bregonig.dll), it is necessary to obtain it separately for the person who is not possession.

Macro Syntax

  • Syntax
    ReplaceDialog( );