Manage link matching

This tab can be used to link a part of the memo field of a transaction to a remote or local URL, for example to make invoices or other documents accessible.

The tab contains input fields for a pattern and a URL template. The specified pattern is treated as a regular expression, which is applied to the memo field of transactions associated with this payee, and the resulting text is inserted into the URL template at designated locations.

The resulting URL is displayed as a link in the general ledger for the corresponding transactions (see “Detail” column) and in the detail view at the bottom left of the memo entry field.

The link can also be accessed via the “Open URL” menu item in the context menu of a transaction or via a keyboard shortcut.

The associated keyboard shortcut can be configured in the Setting and Help Menu.

Hints

Found patterns, which must match Perl-compatible regular expressions, are inserted in the URL template in the place of the supported placeholders. Simple examples are:

  • \d+\b - one or more digits followed by a word boundary.

  • \d{2,4}\b - 2 to 4 digits followed by a word boundary

  • \d{3}-d{6}\b - 3 digits followed by a hyphen and 6 digits followed by a word boundary

Supported placeholders are:

  • %1 - first found expression

  • %2 - second found expression (optional)

When using two independent patterns, the individual expressions in the pattern are separated by parentheses, e.g., (..)...(..).

In addition, predefined variables can be used in the URL template. Currently supported variables are:

  • %year - the year from the date of the corresponding transaction