A grep-like tool for searching binary files with regex
Warning
Warning: Usage is unstable and will change
cargo build --releasebgr --helpPrints each match start address on new line
# find location of species in Pokemon Crystal
bgr '\x01.{31}\x02.{31}\x03.{31}\x04.{31}\x05.{31}\x06' pokecrystal.gbcMore details about matches can be displayed with the --context or -c option starting with value 0.
bgr -c 0 '\x01.{31}\x02.{31}\x03.{31}\x04.{31}\x05.{31}\x06' pokecrystal.gbc# find location of species in Pokemon Crystal
bgr -b '01 2d [31|32].2d' pokecrystal.gbc