Skip to content

Conversation

@craigmox
Copy link

@craigmox craigmox commented Oct 1, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant