Only in the full version of Eddie:
Whereas a normal search-text requires an exact match to the passage(s) to be found right down to one character, the use of jokers (wildcards) allows it to be formulated so that text portions with different contents and size can be found. Jokers are placeholders and represent any amount and kind of text, although this can be restricted as desired with respect to text length and composition.
Joker characters may be inserted in the search or also the
replacement text with the Insert wildcard
button. Let's start
with the first. After insertion the text contains a control
code-coloured abbreviation in curly brackets. The exact display of the
joker depends on the parameters it contains, which can be set with the
Edit control code
function after a double-click on the joker in
the following dialog box:

The upper portion corresponds to the Define joker
character-set dialog for Define word hyphens
. Here you can
choose which characters and/or control codes may appear in the text
encompassed by the joker. Below this are several editable fields:
Minimum: ... characters
as well as Maximum: ...
characters
determine how long the text portion may be that the
joker matches. Every control code counts as exactly one character
here. A 0
as the maximum removes the length restriction
upwards, i.e. the found text part may be of any length.
Attention: The minimum value too may be zero! In this way you can define jokers that – in some circumstances – match text passages that are zero characters long.
The Name
is optional and may be empty. It is required
mainly when using replacement jokers, and so will be described later.
Finally there remain the radio buttons for selecting Fewest
possible
or Most possible
. With this you inform Eddie
whether the joker should encompass the smallest possible or the
largest possible text passage.
The exact appearance of a joker in the search-text is determined
by all these settings. Within the curly brackets there is first the
minimum and maximum number of characters, separated by two dots. If
one of these two values is at the limit (i.e. 0 or unrestricted), then
it will be omitted completely. If both values are identical, then the
two dots are omitted. If Most possible
was selected, then two
colons will replace the dots. After all this follows – if
present – the name of the joker. Finally, an exclamation mark
will be inserted right at the start if the joker is not to fit all
characters and control codes.
This seems more complicated as it really is. Therefore a few examples follow:
To get some idea of the various things you can do with jokers you should try experimenting with them. We have put together a few examples to serve as suggestions. The search/replace setups included with the Eddie package can also be used for study purposes.
For this you enter a search-text that consists of a single
joker. That joker is constructed in such a way that it matches
complete words. With the aid of the Search global
function you
will get the number of text parts found and with that the number of
words in the text.


With this you can find text passages that are written in a given text style. The search-text consists of two parts: The style control code and the joker for the text.


Raw texts frequently have accidentally typed twin space characters in them, which appear in the layout as disturbingly large separations between words. With a simple search/replace rule you can remove these quickly and easily. Space characters following directly after each other will be replaced by a single space in each case.

Replacement text: A single space character

The jokers become really interesting when they appear in the replacement text: In that case the text portions encompassed by the Search jokers may be used during replacement and reinserted into the main text together with the fixed parts of the replacement text.
To ensure unambiguous classification between Search and Replace jokers, all Search jokers that are also to appear in the replacement text must be assigned a name. The Replace jokers in turn contain the names of the Search jokers whose contents they are to adopt. Apart from that the Replace joker has no further settings. It will therefore be displayed only as an equality sign with a following name.
A double-click on a Replace joker opens a popup with the names of all Search jokers currently present, from which you can select one.

If two or more Replace jokers have the same name, then the contents of one and the same search jokers will be assigned to it. Incidentally the reverse case is also permitted: Two or more Search jokers may have the same name. In this special case the text passages which the jokers should match must have the same contents.
Some examples of replace-texts with jokers follow.

Text)


Number:

Heading:

Blank line:
