In its simple search mode, wagrep searches for either
substring match to the required text, so that
Braham, or a word match, in which case
the matched string must be a separate word (i.e.
no longer matches
Searches are then made
more powerful by wagrep's best match capability.
When turned on (can be turned off by selecting exact match),
the program will find the closest match to your string, within a specific
number of errors (generally with a default of three). The latter
allows things like
Brayham to find
For anything more complicated we have advanced mode, which can also be used with exact or best match (and can be a substring or word match).
Stephen|Steven, which will match either word.
J[aeiou]sup, to match
Jesupand so on.
Frodand so on.
Bld, Bold, Booldetc. You can use "+" in the same way if you want at least one occurence (
Bldwouldn't match). ".*" matches anything, but we recommend using "#", which is faster (i.e.
(Braham|Goode).*(Stephen)will give you the e-mail addresses of myself and Stephen Goode (surnames come first).
John Smith. On the other hand, "," is the or operation, so that
Smith,Johnfinds all the Smith's and John's in the file. They cannot be combined in the present version.