User:CX Zoom AWB/Task 1

Background
Due to an error at Template:Uw-username, the following code appeared The actual markup that should have appeared is: There was another issue with the tempalate with this edit, where due to extra safesubst, the #ifeq check between current username & username at the time of subst was removed and Category:Wikipedia usernames with possible policy issues permanently became a part of that page.

Process
There are two parts to this task:
 * 1) To find the pages with erroneous markup, and fix them up.
 * 2) * Completed
 * 3) To find the pages with Category:Wikipedia usernames with possible policy issues permanently embedded, and fix them up.
 * 4) * No such page remained, see

Resources

 * Special:Permalink/1163847075 (list of pages, type 1; by Qwerfjkl)
 * Special:Permalink/1166153664 (making better searches; by Qwerfjkl)
 * Special:Permalink/1167393910 (searching for list of pages, type 2; by Certes)

Regex
To fix the type 1 pages, the following regex was employed:

Errors
Two errors were caused due to greedy matches employed by the regex. Both pages had multiple substitutions of uw-username. The regex matched the username in the first substitutions, and went straight to the last substitution and applied the caught username there. Potential fix can be found here: https://stackoverflow.com/a/11899069/19968976
 * 1) Special:Diff/1144335591/1166149759 on User talk:DyvlusYaNaNebo98 was later fixed manually
 * 2) Special:Diff/1163369439/1166149261 on User talk:R&B Fan did not need to be fixed

Additional links

 * Village pump (technical)/Archive 206