Hex Editor
Hex Editor - Binary File Editing Software for Windows

Regular Expressions Overview

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >

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:

  • Find
  • Find All
  • Replace
  • Replace All
  • Find in Files
  • Replace in Files
  • Pattern Coloring
  • Pattern Statistics

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:

  • Searching for a regular expression backwards is not supported.
  • Searching within selection (either single or multiple) is not supported.
  • Pattern Coloring will sometimes fail to highlight a complex match if it starts long before the visible area and/or ends long after the visible area.
  • Zero-matching regular expressions are forbidden.

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

< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.