FAQ

Main »» Search

Table of Contents


How can the Find dialog box show the previously searched string, not the word at the cursor?
On the right side of the Find drop-down list box, click the > button to display a menu, and select the Custom. Click the > button again to display the menu again, and the select the Save as Default.
How can I erase all the previous words in the Find box?
Click Clear History in the bottom of the Customize dialog box, by choosing Customize under the Tools menu.
In the Find in Files dialog box, can I search for a string in Japanese JIS or EUC files?
In EmEditor Professional you can select Japanese JIS or Japanese EUC in the Encoding drop-down list box in the Find in Files dialog box. In EmEditor Standard, you cannot specify Encodings and cannot search Japanese JIS or EUC files.
Can I use regular expressions to search or replace?
Yes. Regular Expressions are supported.
How can I search for a word at the beginning of lines or a word at the end of lines?
The beginning of a line can be represented as "^" and the end of lines can be represented as "$" if you check Use Regular Expressions in the Find dialog box. Enter "^Search String" in Find field if you want to find "Search String" at the beginning of lines, or "Search String$" if you want to find "Search String" at the end of lines.

A new line can be also represented as "\n" if you check Use Escape Sequence. Enter "\nSearch String" in Find field if you want to find "Search String" at the beginning of lines, or "Search String\n" if you want to find "Search String" at the end of lines.
What are examples of regular expressions?
  • strings surrounded by double-quotation marks
    ".*?"

  • strings surrounded by [ ]
    \[[^\[]*?\]

  • variable names
    [a-zA-Z_][a-zA-Z_0-9]*

  • IP addresses
    ([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})

  • URL
    (\S+)://([^:/]+)(:(\d+))?(/[^#\s]*)(#(\S+))?

  • lines followed by a tab
    \t.*$

  • Hiragana
    [\x{3041}-\x{309e}]

  • Full-width Katakana
    [\x{309b}-\x{309c}\x{30a1}-\x{30fe}]

  • Half-width Kana
    [\x{ff61}-\x{ff9f}]

  • CJK ideographs
    [\x{3400}-\x{9fff}\x{f900}-\x{fa2d}]

  • CJK ideograph marks
    [\x{3000}-\x{3037}]

  • Hangul
    [\x{1100}-\x{11f9}\x{3131}-\x{318e}\x{ac00}-\x{d7a3}]

  • Insert // at start of lines
    Find: ^
    Replace with: //

  • Remove // at end of lines
    Find: ^//
    Replace:

  • Remove trailing whitespaces
    Find: \s+?$
    Replace with:

  • Replace (abc) with [abc]
    Find: \((.*?)\)
    Replace: \[\1\]

  • Replace <H3 ...> with <H4 ...>
    Find: <H3(.*?)>
    Replace: <H4\1>

  • Replace 9/13/2003 with 2003.9.13
    Find: ([0-9]{1,2})/([0-9]{1,2})/([0-9]{2,4})
    Replace: \3\.\1\.\2\.

  • Uppercase characters from a to z (EmEditor Professional only)
    Find: [a-z]
    Replace: \U\0

  • Capitalize all words (EmEditor Professional only)
    Find: ([a-zA-Z])([a-zA-Z]*)
    Replace: \U\1\L\2
Why doesn't EmEditor highlight multi-line strings?
EmEditor has been designed to highlight strings line by line, rather than highlight strings containing new lines, in order to increase the performance of the program.
Why is the Find/Replace dialog box so big?
The Find/Replace dialog box allows resizing by dragging the right bottom corner with the mouse. When the height of the dialog box is minimum, only a single line can be entered as a search string, while the taller dialog box allows multiple lines entered as a search string.
How can I enter a multiple-line string as a search string in the Find/Replace dialog box?
In order to enter multiple-line string as a search string in the Find/Replace dialog box, drag the right bottom corner of the dialog box so the text box allows multiple lines. In order to enter a New Line, use CTRL + Enter.


English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文