This shows you the differences between two versions of the page.
software:gui-designer:regex-tester [2013/11/14 02:07] jarrod |
software:gui-designer:regex-tester [2020/06/24 00:55] (current) jarrod |
||
---|---|---|---|
Line 15: | Line 15: | ||
{{:software:gui-designer:regx_hex.png?nolink&400|}} | {{:software:gui-designer:regx_hex.png?nolink&400|}} | ||
- | To test hex data, escape the test data with an additional backslash i.e. \\x00. Then when applying the final regex, remember to remove the extra backslash. | + | To test hex data, escape the regex with an additional backslash i.e. \\x00. Then when applying the final regex, remember to remove the extra backslash.\\ |
+ | Also, note that hex bytes are treated as a **single byte** in your final regex, whilst it would be treated as **4 bytes** in the tester once adding the extra backslash. So make sure to adjust your final regex to account for the size differences. |