plugin:strreplace
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| plugin:strreplace [2013-06-12 22:44] – [Examples] turnermm | plugin:strreplace [2020-02-05 05:58] (current) – Version upped Aleksandr | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ---- plugin ---- | ---- plugin ---- | ||
| description: | description: | ||
| - | author | + | author |
| - | email : turnermm02@shaw.ca | + | email : turnermm02@shaw.ca |
| - | type : | + | type : |
| - | lastupdate : 2013-06-11 | + | lastupdate : 2019-10-08 |
| - | compatible :adora belle, weatherwax | + | compatible : adora belle, weatherwax, |
| depends | depends | ||
| conflicts | conflicts | ||
| similar | similar | ||
| - | tags : | + | tags : |
| - | downloadurl: | + | downloadurl: |
| - | bugtracker : http:// | + | bugtracker : https:// |
| - | sourcerepo : http:// | + | sourcerepo : https:// |
| - | donationurl: | + | donationurl: |
| screenshot_img : | screenshot_img : | ||
| Line 24: | Line 24: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | Install | + | Search and install |
| ===== Usage ===== | ===== Usage ===== | ||
| - | |||
| Enter up to four strings and their replacements in the Configuration Manager. | Enter up to four strings and their replacements in the Configuration Manager. | ||
| Line 36: | Line 35: | ||
| The replacements are done in the editor when the page is loaded for editing. | The replacements are done in the editor when the page is loaded for editing. | ||
| + | |||
| ==== The Search and Replace Session ==== | ==== The Search and Replace Session ==== | ||
| The plugin keeps track of the pages which it has processed and will not re-process the same page twice | The plugin keeps track of the pages which it has processed and will not re-process the same page twice | ||
| during the same search and replace session. A session remains in effect for as long as the ' | during the same search and replace session. A session remains in effect for as long as the ' | ||
| - | |||
| - | |||
| ==== Examples ==== | ==== Examples ==== | ||
| + | |||
| Regular expressions must be bracketed by hashes: | Regular expressions must be bracketed by hashes: | ||
| # | # | ||
| Line 54: | Line 53: | ||
| Also, it might be useful in some cases to know that the substitutions are done in order, that is, \\ '' | Also, it might be useful in some cases to know that the substitutions are done in order, that is, \\ '' | ||
| + | |||
| ===== Configuration Options ===== | ===== Configuration Options ===== | ||
| + | |||
| |do_search|To do a search and replace, set this option to true. For each Search Term enter a Replacement at the same numbered position. '' | |do_search|To do a search and replace, set this option to true. For each Search Term enter a Replacement at the same numbered position. '' | ||
| |suspend |When set to true this option temporarily suspends the search and replace processing. This does not affect the list of previously processed files. The [[# | |suspend |When set to true this option temporarily suspends the search and replace processing. This does not affect the list of previously processed files. The [[# | ||
| - | |search_1| Search Term 1: the search string entered here is replaced by Replacement 1, etc. Search terms and their replacements can be set at any time, even during an active [[# | + | |search_1| Search Term 1: the search string entered here is replaced by Replacement 1, etc. Search terms and their replacements can be set at any time, even during an active [[# |
| |search_2| Search Term 2| | |search_2| Search Term 2| | ||
| |search_3 |Search Term 3| | |search_3 |Search Term 3| | ||
| Line 65: | Line 66: | ||
| |replace_3 |Replacement 3| | |replace_3 |Replacement 3| | ||
| |replace_4| Replacement 4| | |replace_4| Replacement 4| | ||
| + | |||
| + | ===== Changes ===== | ||
| + | {{rss> | ||
| + | ===== Discussion ===== | ||
| + | |||
| + | ==== Replace word into same word but on a new line ==== | ||
| + | |||
| + | Is it possible to search on the word '< | ||
| + | |||
| + | For example: | ||
| + | '' | ||
| + | should be replaced into \\ | ||
| + | '' | ||
| + | ''< | ||
| + | > The plugin only accepts valid dokuwiki syntax, so there is no way to insert a newline. You can, however, insert the dokuwiki markup for the newline, which is the double backslash; however, to get the double backslash you must enter four backslashes in the replacement string, since each backslash must be escaped: %%\\\\%%. | ||
| + | |||
plugin/strreplace.1371069850.txt.gz · Last modified: by turnermm
