Regular expressions

From Electron Cloud

Revision as of 02:42, 3 January 2007 by Ecloud (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To convert a hex string like FF651234 to C array initialization like 0xFF, 0x65, 0x12, 0x34 using find and replace in Scite:

Find what: \([A-F0-9][A-F0-9]\)
Replace with: 0x\1,_
Personal tools