Chet
Chet copied to clipboard
Add "Format" operation to RegEx command
Adds another "Format" operation to the RegEx post-processing command.
It allows you to match a line with a regex expression that includes zero or more match groups, and replace it with a value that calls out any of the match group values using the standard Delphi Format() specifiers.
Example:
The post-process script command:
RegEx("(\w+) = (\w+);", "%1:s_ptr = ^%2:s;", "Format")
Converts a line in a output file:
large_int = Int64;
To:
large_int_ptr = ^Int64;