\x[01-FF] matches "\x00" (the nul byte) followed by one of( "0", any of the characters between "1" and "F" [in ASCII order], or "F" ). [\x01-\xFF] would work, though others have given you better ways to do this (I just wanted to answer "What's wrong with my regexp?"). Since \x wasn't followed by hex digits, it got interpreted as \x00.
- tye (but my friends call me "Tye")In reply to (tye)Re: How do I remove trailing zeros from a hex string?
by tye
in thread How do I remove trailing zeros from a hex string?
by donfreenut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |