bitstring icon indicating copy to clipboard operation
bitstring copied to clipboard

Allow pad in searches

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

Nice idea to allow the new pad token in find/replace.

For example:

s.find('0x000001b3, pad:14, 0b1')

which would find the next hex code which is followed by 14 bits of anything and 
then a one bit. Or how about:

s.find('0x000001b3, pad:16, uint:6=a, pad:8*a, 0xff')

maybe do that one later...

Would also affect replace, rfind, findall.

Original issue reported on code.google.com by [email protected] on 21 Mar 2013 at 9:24

GoogleCodeExporter avatar Apr 11 '15 20:04 GoogleCodeExporter

Interestingly pad is already allowing in find etc. (more by accident than 
design), but it translates to looking for a sequence of zeroed bits.

Original comment by [email protected] on 21 Mar 2013 at 4:15

GoogleCodeExporter avatar Apr 11 '15 20:04 GoogleCodeExporter

I don't think this is really needed.

scott-griffiths avatar May 31 '23 09:05 scott-griffiths