By means of it the menu you can carry out search and replacement under all documents in the project. It can be both cleaning from unnecessary symbols, and replacement of one variant by the second. The tool supports regular expressions and search in several fields of article (heading, the text, the description etc.).
a program Window: Search and replacement
The window shares on 2 parts: left (sliding) is снипеты, i.e. the kept rules of search and replacement, right — the list corrected search and replacement.
At first you need to create one or several rules
search and replacement (for this purpose use the button to add in the top part of a window of the program) and to enter the rules of search (the top field for text input) and replacements (the bottom field for text input).
Zebroid is able to do replacement in texts, headings, labels, a field description or in all this field simultaneously. For that, where exactly will be replacement is made the field
the Source answers.
As regular expressions which allow very flexibly indistinct to operate text search are supported. For those who is badly familiar with regular expressions or wants to check up made регулярку, the tool "
the Designer of regular expressions " which is created caused through the button near an option «Regular expressions».
Макросы in search and replacement
In search and replacement rules it is possible to use the following set of macroes (value which for each article will be replaced on corresponding to it):
- {{TITLE}} — it is replaced with the name of current article
- {{TAGS}} — it is replaced with labels of current article
- {{ALT_NAME}} — it is replaced on alt_name current article
- {{DATE}} — it is replaced with date of the publication of current article
- {{RANDOM_TAG}} — it is replaced on casual меткутекущей articles
- {{RANDOM_TAG}} — it is replaced on casual меткутекущей articles
- {{NUMB:X.Y}} — it is used only in the field of replacement. It is replaced with serial number of the found coincidence. Readout begins with number X. Accuracy can be set number Y it (is not obligatory). Use examples: {{NUMB:1}} will be replaced with numbers, since 1 (1, 2, 3...); {{NUMB:1.2}} — it will be replaced with numbers since 1 with accuracy in 2 symbols (01, 02, 03...); {{NUMB:9.3}} — it will be replaced with numbers since 9 with accuracy in 3 symbols (009, 010, 011...)
- {{RANDOM_INT:X, Y}} — it is replaced with a casual integer in a range from X to Y. For example, if you want, that the macro was replaced with number from 0 to 9 then it is necessary to write {{RANDOM_INT:0,9}}