User:Becasita/SubPages/Regex

Useful regex to update pages.

Unless stated otherwise:
 * Global match (replace all);  modifier;
 * No single line;
 * Multiple line;  modifier; (It doesn't really matter here, though.)
 * Case sensitive;  modifier;

Usually, the text editors have check boxes for these options, so the modifiers are not needed. Single line is usually unchecked by default.

To make use of this, just copy the code of the page you want to change to a text editor. Then open the "Find & Replace" box. Find what's on the "Find" row and replace with what's on the respective "Replace" row.

Lists
Notes:
 * This is made to use in conjunction with Dino's boilerplate. To use it separately,  should be substituted with the language index. Languages indexes can be checked at ISO 639.

Notes:
 * This should only be used if there already is a last line with the card type and if there is no line with the card number.

Galleries
Notes:
 * should be substituted with the language index.

Notes:
 * should be replaced with the cards' set number (e.g., 046) of the entries you want to change, separated by a pipe . E.g., ;
 * To change to PNG instead, just substitute  with.


 * Other