Hex Editor - Binary File Editing Software for Windows

Regular Expressions Overview

Regular expressions provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. Regular expressions are written in a formal language. The syntax used by the Hex Editor Neo is essentially the syntax standardized by ECMAScript, with minor changes in support of internationalization. The following section briefly describes the syntax.

Regular expressions are supported by the following Hex Editor Neo commands and modules:

Capturing Sub-expressions

Every Hex Editor Neo function that works with regular expressions allows you to specify what sub-expression you want to capture. Sub-expression zero represents the entire expression, sub-expression 1 and greater represent corresponding sub-expressions.

If you specify the sub-expression that is greater than the total number of sub-expressions, the error message is displayed.

Usage Tips and Performance Considerations

Using regular expressions affect performance and memory usage. Always prefer using normal pattern searching functions whenever possible. Replace All command with regular expressions may need as much as 3 times more memory compared to a simple (pattern based) Replace All command.

The following limitations are present in the current version of the Hex Editor Neo:

Future versions of the Hex Editor Neo will eliminate some of these limitations, while others are by design and cannot be eliminated.