Skip to content

Instantly share code, notes, and snippets.

@taylus
Created February 10, 2020 05:02
Show Gist options
  • Select an option

  • Save taylus/b4aadae13d2ee7c91557a3fcadcaeae1 to your computer and use it in GitHub Desktop.

Select an option

Save taylus/b4aadae13d2ee7c91557a3fcadcaeae1 to your computer and use it in GitHub Desktop.
Regex to turn AA BB CC DD into 0xAA, 0xBB, 0xCC, 0xDD
Find what: ([0-9A-Fa-f])([0-9A-Fa-f])
Replace with: 0x\1\2,
Search mode: Regular expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment