Format Tags

Many functions in Replace Genius support format tags. A format tag is a special word that tells Replace Genius to replace it with something else, usually related to the line currently being processed. Here is an example:

Here, <LineNr> is the tag. When running this in Replace Genius it will become something like this: As you can see, <LineNr> has been replaced with the actual line number!

Tags are always enclosed in < and >. You can see where you are allowed to use tags by looking for a small button with an arrow. Click on the button to open up a menu with all the available tags:

Parts

Click on the "link" in the global options to open the Setup Parts window:

Parts allows you to tell Replace Genius how your lines are structured. This is done by separating the different parts with characters that are common to all lines. In the image above you can see that the parts have been defined as <%1>-<%2>. There is also a preview that shows you what your parts will translate to when used on a line.

When defining the parts you should look for sections of your lines that are common to all the lines that you want to process. The above example would for example work on all lines that have a - in the middle.

Tip:
    Click on the magic wand button to automatically detect the parts of the line that is selected in the preview box!

When you have defined your parts you can use them as tags in functions. For example you can use them to rearrange lines. Here is a typical example:

The parts are available in all functions that support tags. To rearrange a line like the above example you can use the Free Format function.