Python Forum
How to search for a byte hex pattern with Joker in FIile
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to search for a byte hex pattern with Joker in FIile
#1
Hello all

i am searching for a solution to parse a file for a byte pattern with jokers inside a file, and if found to print the position ,or if multiple times inside the starting position of that pattern.

e.g. i`d like to search for "ce xx xx 20 xx xx 4c xx xx ad xx xx c9 02" where xx represents the joker as these values may be different.
Reply
#2
(Jun-03-2023, 05:01 AM)lastyle Wrote: i`d like to search for "ce xx xx 20 xx xx 4c xx xx ad xx xx c9 02" where xx represents the joker
Use regular expressions (the re module)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Saving data into .mat (Matlab Fiile) Tulo_Stone 0 2,398 Feb-28-2018, 12:57 AM
Last Post: Tulo_Stone

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020