#binary #grep #match

bin+lib rbrep

Rust Binary Grep

1 unstable release

0.1.0 Dec 29, 2022

#90 in #match

MIT license

16KB
387 lines

rbrep

Table of content

Installation

This program requires the latest stable release of rust. Once rust is set up correclty simply clone the repository. Then run:

cargo build # to build or
cargo install  # to install 

Usage

Gif showing rbrep in action

Syntax

The following options are available as of now:

  • any 8 bit hex number (e.g. 1a) will be interpreted as this precise value
  • ?? will match any value
  • A string (e.g. "a string") will match an exact string
  • A range (e.g. 1a-20) will match the range from n..m
  • A group will match the first valid item contained in it (e.g. (aabbaa-bb))
  • Any expression can be multiplied (e.g. aa*4)

License

This program is distributed under the terms of the MIT License.

Contributing

All contributions are welcome. Both pull requests and issue reports are always appreciated. Please make sure that all existing tests pass before submitting a pull request.

Dependencies

~1.5–9.5MB
~84K SLoC