User:Audacity/Regex


 * Useful regular expressions.

Use with User:Cacycle/editor, or your favorite text editor.

 from 
Find: \) ([^*=]*?) (from [^*=]*?\n) Replace: ) "$1" $2
 * Step 1

Find: (\* \(.\:.{2}\)) ([^"\n*]*?)\n Replace: $1 "$2"\n
 * Step 2

\* \(.\:.{2}\) [^"]
 * Check over:

Artist - Song
Find: (.*?)(,|\n) Replace: "$1"$2 Find: \[\[(.*?)\]\](,|\n) Replace: "$1"$2
 * Fix multiple songs

Fix headings
Find: (={2,5})([^ =]{1}.*?)={2,5} Replace: $1 $2 $1