MassEditRegex

From Biowikifarm Metawiki
Jump to: navigation, search

MassEditRegex

This extension allows administrators to replace specific texts simultaneously in a larger number of pages. Adding texts like category assignments are also possible. The pagenames need to be specified which means a text search normally precedes the use of the extension. However, apart from providing a list of the pages to be edited other options like specifying the begining of the pagenames or categories are also possible. For categories all pages within a category are searched and edited.

Here are a few notes for administrators who are not familiar with this extension:

  • Go to Special:MassEditRegex
  • Enter a list of pagenames into the box "Pages to be edited", placing each pagename into a new line
  • Enter the search text using the preg_replace format. That means the search text needs to be enclosed in forward slashes and several signs need to be escaped, like [, /, (, ), or |. The use of regular expressions is also possible.
  • If the search text is not found in one of the pages listed no changes are done on that page.
  • Normally it is advisable to use the "Show preview" option first. However, the preview is limited to the first 10 pages listed.
  • Several search and replace expressions can be used simultaneously. Fore this each search and replace expression is entered in a new line, even if the replace line is blank.