Edit Anything

Professional text and hex editing
with Binary Templates technology.






010 Editor - Text/Hex Editor Homepage

The Find Bar can be used to find a string, a set of hex bytes, or a number of different data types within a file. The Find Bar can be accessed from the 'Find > Find...' menu option, the Tool Bar, or by pressing Ctrl+F.


Find Bar

When performing a search, the Find Bar will be displayed at the bottom of the editor. Different data types may be searched by clicking the type name to the right of the Find label and choosing from the popup list. The following types are supported:

  • Text (t) - searches for a string using the character set of the current file (see Edit As). Can be used to search for ASCII strings, Unicode strings, UTF-8 strings, etc.

  • Hex Bytes (h) - searches for a set of hex bytes (for example: 'FF 00 CB').

  • ASCII String (a) - searches for an ASCII+ANSI string.

  • Unicode String (u)

  • EBCDIC String (e)

  • Signed Byte (i8)

  • Unsigned Byte (ui8)

  • Signed Short (i16)

  • Unsigned Short (ui16)

  • Signed Int (i32)

  • Unsigned Int (ui32)

  • Signed Quad (i64)

  • Unsigned Quad (ui64)

  • Float (f)

  • Double (lf)

  • Variable Name (n) - see Finding Variables below

  • Variable Value (v) - see Finding Variables below

The value in brackets is the type specifier and can be used as a quick way to search for different data types (see the Type Specifiers section below). Enter a string, value, or hex bytes to search for in the text field and the field will automatically be converted to hexadecimal bytes and displayed to the right of the Options button. Note that when converting numbers or Unicode strings, the endian of the current file is used (see Introduction to Byte Ordering). Note also that the text field can be resized by dragging the resize handle to the right of the Options button.

Clicking the icon will find the next occurrence of the value in the current file or clicking the icon will find the previous occurrence. Clicking the All button will find all instances of the target value in the file and display the results in the Output Window (see below). Pressing the Enter key in the text field has three different possible outcomes depending upon which options are set in the Options dialog: If the Find All Occurrences toggle is set, pressing Enter will perform a Find All operation but if it is not set, pressing Enter will either find the next occurrence of the find value if the Down toggle is selected, or find the previous occurrence if the Up toggle is selected. If no occurrences of the find value could be found, the find text field will be displayed in an orange color. Press the Esc key to hide the Find Bar and return to editing the file.


Find Options

Different options for the dialog can be displayed by clicking the Options button. When the Find All Occurrences toggle is set, pressing the Enter key in the text field will find all occurrences of the target value. When this toggle is not set, pressing the Enter key will either search for the next or previous occurrence of the target value depending upon if the Down or Up toggle is set in the Direction box.

By default all find operations search the entire file but it is possible to limit finding to one part of the file by using the Range box. To limit the find, first select some bytes in the file and then click the Options button and then the Lock to Selection button. The Lock to Selection button will be disabled if no selection exists. After this button is clicked, all subsequent find operations will be limited to the selection and the limited area will be highlighted brown in the editor (see Theme/Color Options to change the color). To return to searching the whole file, click the Unlock Selection button or the icon.

When searching for strings, two options are available: If the Match Case toggle is enabled, the target string will only match if the bytes match exactly. When the toggle is disabled, characters that are not the same case will match. If the Match Whole Word toggle is set, the target string will not match partial words. When Match Case is enabled, the Options button will contain the 'C' character in brackets and when the Match Whole Word toggle is enabled, the Options button will contain the 'W' character in brackets.

To search for regular expressions enable the Search with Regular Expressions toggle and see the separate Regular Expressions help topic. When regular expression searching is turned on the Options button will contain the 'R' character in brackets. When searching for strings or hex bytes, enable the Search with Wildcards toggle to allow the characters '*' and '?' to be used as wildcards in the text field. The '?' wildcard must match exactly one byte, and the '*' wildcard can match zero up to a certain maximum number of bytes. For example, the value 'adv*e?' would match both the strings 'advantages' and 'advised'. When searching for Hex Bytes using wildcards, '??' indicates one hex byte to find. The maximum number of bytes for a match can be specified using the Advanced Options section as described below. When the Search with Wildcards toggle is turned on, the special syntax '\*' and '\?' can be used to literally search for the characters '*' (ASCII code 0x2A) or '?' (ASCII code 0x3F).

When searching for floats or doubles, the Float Find Tolerance field will be displayed. This field can be used to search for numbers that are very close to other numbers. Because of numerical precision, sometimes floating-point numbers are stored as 2.00000001 instead of 2. Enter a tolerance value in the Float Find Tolerance field. Numbers that are within the tolerance above or below the target value will match.

If the Allow Multiple Find Ranges toggle is enabled, 010 Editor can store the search results from a number of different queries and can optionally color each query by a different color in the Editor Window. When this toggle is enabled, each query that is performed will add another section of results to the Find tab of the Output Window (see Output Window below for more information). Also, the coloring of the file can be controlled with the Advanced Options section as discussed below.

Click the Advanced Options section to display further options for the find tool. By default, when searching for the next occurrence of a find value and no values are found, the search will start over at the beginning of the file or when searching up and no values are found, the search will start again at the bottom of the file. This is called wrapping and can be disabled by turning off the Allow Wrapping toggle. Clicking the Allow Type Specifiers toggle allows turning off the use of type specifiers (see the Type Specifiers section below). If the Hide Find Bar after Search toggle is enabled the Find Bar will be hidden after a Find All operation, but if this toggle is turned off the Find Bar will remained focused after a search.

By default, after a find is executed the found values are colored in the main Editor Window according to the Find color listed in the Theme/Color Options dialog. To override this coloring enable the Use Custom Color toggle and enter a new color using the Fore and Back color boxes. The Fore color indicates the text color to be displayed, and the Back color indicates the background color behind the text. Specifying custom colors is useful with using Allow Multiple Find Ranges to color different ranges different colors.

When finding a large number of find values it is possible to run out of memory. To prevent this 010 Editor by default has a limit of 10000000 find occurrences (10000000 occurrences uses approximately 1 GB of storage). This limit can be disabled by turning off the Limit Find Occurrences toggle or the limit can be changed using the field to the right of the toggle. If more find occurrences are found than the limit, the text "Too many to display" will be displayed at the bottom of the Find results. When the Search with Wildcards toggle is enabled, specify the maximum number of bytes that the wildcard character '*' can match in the Maximum Wildcard Match Length' (default of 24).


Output Window

When searching for all occurrences of a target value using the Find All button, the results are displayed in a Table in the Output Window. The top row will be a gray header line that indicates the search target and number of occurrences found. Each row of the table indicates a match with the target value. The starting address and value searched for are displayed in the Address and Value fields respectively. When searching within text files, the full line where the find occurrence was found is displayed in the Value field with the found value marked in bold. On the left side of the Output Window is a graph representing the file. Lines indicate the position of matches in the file. When a row is selected in the table, the corresponding line in the graph will be displayed as a yellow line. The number displayed below the graph indicates the number of matches that were found. Bytes in the main Editor Window will be colored blue if those bytes are part of a match. Selecting a row in the table will select the bytes in the editor and also show the index of the match in the Status Bar (for example "(2/8)" means the second out of 8 matches was selected).

The display format for each column can be set to hexadecimal or decimal by right-clicking on the Output Window and selecting 'Column Display Format'. The Size column, which displays the size of each find occurrence is hidden by default but can displayed by right-clicking on the table and selecting Column Display Format > Size Column > Show Column. Data can be exported or imported from the table in CSV format by right-clicking and selecting either Export CSV or Import from the menu. Right-click the table and select 'Clear' to clear all find results or right-click on the Editor Window and select 'Clear Find Results'. Press the Esc key to hide the Output Window.

If multiple searches were performed and the Allow Multiple Find Ranges toggle is enabled, each search will be displayed in the Output Window in a different section of the table separated by a gray header line. Click the arrow buttons buttons beside the header, or double-click the header to hide or show the results from that search. Right-click the table and click the 'Expand All' or 'Shrink All' menu options to show or hide the search results for all queries.


Find Next/Find Previous

After a search has been made, the 'Find > Find Next' or 'Find > Find Previous' menu options can be used to step through the file, searching for the next or previous occurrences of the target value even when the Find Bar is not displayed.


Type Specifiers

A quick way exists in the find field to specify different find types without using the popup list of types. This can be done by placing a comma followed by a type specifier at the end of the value to find in the text field. For example, the value "453f,h" would search for the hex bytes 0x45 and 0x3f, the value "0x100,i32" would search for the integer 256, or the value "2.5,lf" would search for the double '2.5'. The full list of type specifiers is shown in the list at the top of this section. To disable the use of type specifiers, click the Allow Type Specifiers toggle in the Advanced Options section.


Finding Variables

The Find Bar can also be used to find variable names or values within the Template Results panel. Set the type to search for as Variable Name or Variable Value to search for variables. When a variable is found that matches either the Name or Value, that variable will be highlighted within the Template Results. Note that find all and replace operations are not supported with finding variables. To search for a variable name where the value must be equal to a specific value, select the Variable Name search type and use the syntax <varname>=<varvalue>. For example, a search of 'filenum=42' would find a variable called 'filenum' that has the value 42.


Clearing Find History

All recent Find, Replace, and Find In Files operations are stored in a history list which can be accessed by clicking the Up arrow to the right of a text field in the Find, Replace or Find in Files bars. To clear the search history click the Up arrow in the Find field and choose the option '(clear find history)' located at the bottom of the list. Select which lists to clear in the dialog above and click the Clear button. The Clear Find in Files Directories option indicates the history list to the right of the in Files text on the Find In Files bar and the Clear Find in Files File Types option clears any file masks from the File Types field of the Find in Files bar.

NOTE: The Find Bar will be hidden automatically after a period of inactivity. To control the length of the period of inactivity before hiding see the General Options dialog.


This is the manual for 010 Editor, a professional hex editor and text editor. Use 010 Editor to edit the individual bytes of any binary file, hard drive, or process on your machine. 010 Editor contains a whole host of powerful analysis and editing tools, plus Binary Templates technology that allows any binary format to be understood.





Newsletter - Receive special offers, tips, tricks and news. Join now



010 Editor v15.0 is here!
What's new?


Navigation


Products

010 Editor














E-mail: info@sweetscape.com