Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

Find All

This extremely powerful command locates all occurrences of a specified pattern. The Find Window is used to specify the pattern to search for, as well as a number of additional options.

Complexity: linear time (depends on the file's size and resulting number of non-contiguous matches).

Find All Results

The result of the Find All operation is a multiple selection, which describes all pattern occurrences. Selection Details window may be used to browse the results. In addition, a message window with a total number of occurrences found is displayed when searching finishes.

If the pattern has not been found in a file, a message is displayed.

Searching with Alignment

You may specify a positive alignment number for a Find All command. The operation will only match a pattern occurrence if its address is aligned to a given number. By default, alignment equals to a current editor window's grouping mode.

Wildcards

Find allows you to search for a pattern with wildcard characters (? and *) as well as byte patterns with gaps. Press the X gap character when in pattern editing mode to insert gaps. For text pattern with wildcards, select the Match mode to Wildcards (greedy) or Wildcards (non-greedy).

Regular Expressions

The Find All command fully supports regular expressions. To search using regular expressions, select either “ASCII string (char[])” or “UNICODE string (wchar_t[])” pattern type, enter the regular expression, make sure the Match mode is set to Regular expression and, optionally, enter the sub-expression number you want to search for. Sub-expression 0 represents the expression itself.

NOTE
  • Searching with regular expressions within a selection (either single-range, or multiple) is not supported.

Scripting

Scripts can use IDocumentView.findAllAsync method to execute the find all operation.