I'm working with some binary data which have similar matches throughout the code. For example "a6636f6f726473" is one of those matches. Now I want to do a reverse search for first match, the letter a and the number I don't know yet, and return the position of all the found matches in the file.
Example: In string a7a36d617815a7536b697070657284a6636f6f72647383
I want it to find a7536b697070657284a6636f6f72647383
and return the position 12
. The only unique string is a6636f6f72647383
and want to do a reverse search for the first char a
it finds which gives me a7536b697070657284a6636f6f72647383
and then I want to figure out the position of a7
.
Hopefully this makes any sense and someone can push me to get into the right direction on how to parse this in Python.
-J