User:Dispenser/AWB Navbox.xml

AWB XHTML/CSS navbox conformity script, lasted updated on 20:27, 29 June 2007 (UTC).   wikipedia en /  Id="toc"   Template:Apache County, Arizona  <Article NameSpaceKey="10"> <Name>Template:Coconino County, Arizona</Name> </Article> <Article NameSpaceKey="10"> <Name>Template:Gila County, Arizona</Name> </Article> <Article NameSpaceKey="10"> <Name>Template:Mohave County, Arizona</Name> </Article> <Article NameSpaceKey="10"> <Name>Template:Navajo County, Arizona</Name> </Article> <Article NameSpaceKey="10"> <Name>Template:Pinal County, Arizona</Name> </Article> <Article NameSpaceKey="10"> <Name>Template:Yavapai County, Arizona</Name> </Article> </ArticleList> </List> <FindAndReplace> <Enabled>true</Enabled> <IgnoreSomeText>false</IgnoreSomeText> <AppendSummary>false</AppendSummary> <AfterOtherFixes>false</AfterOtherFixes> <Replacements /> <AdvancedReps> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children /> <Name>~```--- - NOTES - ---'''~</Name> <ruletype_>OnWholePage</ruletype_> <replace_>Welcome to the navbox conformity script. Hitting make list should generate a list of page with problem, filter out all namespaces expect the template. And START THE PROCESS!

Users are responsible for the edit they make, It's recommend that in you comment that you link to User:Dispenser/Navbox conform so that other editors will know why your doing this. Not all the options are enabled, and this script assumes that you're working in template space on a navbox. Although, some parts should be able to work in other name spaces, like the Hex color code reducer. To ensure that the template doesn't run amuck of meta-template it will skip page that contain "{{{" in them.

This script includes 144 rules including this annotation entry, but since wikitext is so hard to parse the operator need to look at the output to ensure that it's done everything it's suppose to.

Well anyway with this thing nearing stablity I'll go take some time off, maybe I'll work on that template fixing and sorting bot?

Complaints
something is moved? looking at you ctrl-bksp. line? double-click text boxes, its really annoying. <with_>As a side note, to be honest I'm a still little unsure how all these rules actually work, and the fact that they work as they sometimes do.</with_> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>RULE NOT ACTIVE</ifContains_> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>NBSP Notice</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;!--.*?NBSP.*?wrap.*?--&gt;</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> </Children> <Name>Remove generic comments</Name> <ruletype_>OnWholePage</ruletype_> <replace_ /> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>&lt;!--</ifContains_> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children /> <Name>Ship navbox</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|-\s*!\s*(\[\[List)</replace_> <with_>\r\n$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>\[\[List of </ifContains_> <ifNotContains_ /> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children /> <Name>Ship navbox</Name> <ruletype_>OnWholePage</ruletype_> <replace_> * *(\[\[List[^]]*\]\]) *</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>\[\[List of </ifContains_> <ifNotContains_ /> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Remove &lt;br&gt;</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(\n[!|]([^|]*\||)\s*)&lt;br[ /]*&gt; *</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Uncat tag</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|\}\s*</replace_> <with_>|}&lt;noinclude&gt;
 * Does AWB really need to expand the list every time
 * Is it too much to ask for comment field?
 * Can we have more windows shortcut work here? I'm
 * Wouldn't it be cool to have if like statement per
 * Why is it that there are special handler for
 * Why does the window in subst: not resize correctly?</replace_>

&lt;/noinclude&gt;</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_>[Cc]ategor</ifNotContains_> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase</ifRegexOptions_> </IRule> </Children> <Name>Ships navbox</Name> <ruletype_>OnWholePage</ruletype_> <replace_ /> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>destroyer|battleship|cruiser|frigate|submarine|tanker|carrier|monitor|navy|class coast guard|cutters|Royal Fleet </ifContains_> <ifNotContains_ /> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Padding</Name> <ruletype_>OnWholePage</ruletype_> <replace_>padding:0 0% 0 0%;</replace_> <with_ /> <regex_>false</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>dangaling text-align</Name> <ruletype_>OnWholePage</ruletype_> <replace_>text-align: *center *;</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>IgnoreCase</ifRegexOptions_> </IRule> </Children> <Name>TV navbox</Name> <ruletype_>OnWholePage</ruletype_> <replace_ /> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>tele|radio</ifContains_> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>HTML Spacer</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;div.*?width.*?&gt;&amp;nbsp;&lt;/div&gt; </replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>float:center; (Non-existant)</Name> <ruletype_>OnWholePage</ruletype_> <replace_>float:center;</replace_> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Unintelligible equal signs</Name> <ruletype_>OnWholePage</ruletype_> <replace_>="=</replace_>           <with_>="</with_> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Hidden line breaks</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;font[&lt;&gt;]*0[&lt;&gt;]*&gt;(&lt;br[^&lt;&gt;]*&gt;)&lt;/font&gt; </replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Non-matching &lt;small&gt;</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;small[^&lt;&gt;]*&gt;</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_>&lt;/small&gt;</ifNotContains_> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Breakup single-cell table</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\s*&lt;br[^&gt;]*&gt;\s*</replace_> <with_>\r\n|-\r\n|| </with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_>\{\|</ifContains_> <ifNotContains_>\|-</ifNotContains_> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Fix unfinished style</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(style="[^"=]*?)( \w+=)</replace_> <with_>$1"$2</with_>           <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>style="[^"=]=</ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Div wrapper around table</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(&lt;div)([^&gt;]*)(&gt;[^|]*{\|)</replace_>            <with_>$1$3$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>!! new cell</Name> <ruletype_>OnWholePage</ruletype_> <replace_>^! *!</replace_> <with_>!</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Multiline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Double style</Name> <ruletype_>OnWholePage</ruletype_> <replace_>style=style=</replace_> <with_>style=</with_> <regex_>false</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>width="justify;"</Name> <ruletype_>OnWholePage</ruletype_> <replace_>width="justify;"</replace_> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Wrong (h|v)align values</Name> <ruletype_>OnWholePage</ruletype_> <replace_>[vh]align="[^"]*"</replace_>           <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>halign="</ifContains_> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>nbsp to fake newline</Name> <ruletype_>OnWholePage</ruletype_> <replace_>^\s*&amp;nbsp;\s*</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase Singleline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Empty cells at the end</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(^[|!][^\n]*?)\|\|\s*$</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Multiline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>hack</Name> <ruletype_>OnWholePage</ruletype_> <replace_>style="font-size: 0.9em; text-align: left"</replace_> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>pixel padding 10px hack</Name> <ruletype_>OnWholePage</ruletype_> <replace_>padding:\s*10px</replace_> <with_>padding:0.5em</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children /> <Name>pixel padding 5px remover</Name> <ruletype_>OnWholePage</ruletype_> <replace_>padding:\s*5px;+</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>text-valign:</Name> <ruletype_>OnWholePage</ruletype_> <replace_>text-valign:[^";]*[;]?</replace_>           <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>clear both (no semicolon</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>clear both;</replace_>            <with_>clear:both;</with_>            <regex_>false</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>&lt;br&gt; at end of a cell</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;br[^&lt;&gt;]*&gt;((\r| )*\n\|-)</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Recuded Padding killer (0 5% 0 5%)</Name> <ruletype_>OnWholePage</ruletype_> <replace_>padding:( *0(%|px|) *\d(%|px))*([;"])</replace_>           <with_>$4</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Floating semicolon</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>; *; *</replace_>            <with_>; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_> </IRule> </Children> <Name>User issues (aka hacks)</Name> <ruletype_>OnWholePage</ruletype_> <replace_ /> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Exessive hypens in |---</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|--+ *</replace_> <with_>|-</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Repeated |-</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|-\s*\|-</replace_> <with_>|-</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>7</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Last |-</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|-\s*([|}]\})</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>End Table</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(\s*&lt;noinclude&gt;|\s*$)</replace_> <with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Singleline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_>\|\}</ifNotContains_> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Multi-cell singleline</Name> <ruletype_>OnWholePage</ruletype_> <replace_>^([!|])([^\n]*)\|\|</replace_> <with_>$1$2 $1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Multiline</regexOptions_> <numoftimes_>6</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Remove empty lines</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\s*(\r\n[!|])</replace_> <with_>$1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>2</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Remove empty lines after</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(\n[!|])\s+ </replace_> <with_>$1\r\n</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Remove empty cells</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(\|[^\n]*|\|-) ([|!])[^|\n]*\| (\|[-}])</replace_> <with_>$1 $3</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Add attribute field to cells</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(^[!|])([^-+|}])([^|]*$|[^][}{|\n']*[[{'])</replace_>           <with_>$1| $2$3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Auto Bold</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^[!|])([^|\n]*=[^|\n]*\||)\s*([^\n]*)\s*$</replace_>            <with_>!$2 $3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>3</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>rowspan=1/colspan=1</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(col|row)span=("1"|1)(\D)</replace_>            <with_>$3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Remove single newline</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> ([!|][^|[]*\|)\s* ([^|!][^-|\n][^|\n]*) ([!|])</replace_>            <with_> $1 $2 $3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Add spaces</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>([\n{][|!][|-]?)(\w)</replace_>            <with_>$1 $2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>bring &lt;tr&gt; attributes to single &lt;td&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\|-([^\n]*)[\r\n]* ([!|])([^][}{|]*\|[^\n]* \|[-}])</replace_>            <with_>|- $2$1$3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Single Column table</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> colspan="\d"</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_> [!|][^-}].*? [!|][^-}]</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>        </Children>        <Name>Fix Tables</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_>\{\|</ifContains_>        <ifNotContains_ />        <ifIsRegex_>true</ifIsRegex_>        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Equal signs in style</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(style="[^"\n]*?)=</replace_>            <with_>$1:</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>5</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Quote Attributes</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\s+(\w+) *= *("\s*([^"=]*?)\s*"|([A-Za-z#-;]+))</replace_>            <with_> $1="$3$4"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Strip semicolons</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>("|";)</replace_>            <with_>"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style colon</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( style="[^"]*)( *: +)</replace_>            <with_>$1:</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>10</numoftimes_>            <ifContains_>: </ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style fix semicolons</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( style="[^"]*)( *; *)</replace_>            <with_>$1; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>10</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style end semicolon</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>style="([^"]*[^; "]) *;* *"</replace_>            <with_>style="$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Merge &lt;includeonly&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;/includeonly&gt;(\s*)&lt;includeonly&gt;</replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>Fix Markup</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table ALIGN to float</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*?) align="(left|right)"</replace_>            <with_>$1 style="float:$2; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>\{\|[^\n]*float:</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table ALIGN= Remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*?) align="[^"]*"</replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>VALIGN</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> valign="([^"]*?)"</replace_>            <with_> style="vertical-align:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>ALIGN</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> align="([^"]*?)"</replace_>            <with_> style="text-align:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>5</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>BGCOLOR</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> bgcolor="([^"]*?)"</replace_>            <with_> style="background:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>COLOR</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> color="([^"]*?)"</replace_>            <with_> style="color:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>FACE</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> face="([^"]*?)"</replace_>            <with_> style="font-family:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>SIZE (selective)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> size="\s*(\d\w+)"</replace_>            <with_> style="font-size:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>WIDTH</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> width="([^"]*?)"</replace_>            <with_> style="width:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>HEIGHT</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> height="([^"]*?)"</replace_>            <with_> style="height:$1; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>NOWRAP</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> nowrap(="[^"]*"|)</replace_>            <with_> style="white-space:nowrap; "</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Background</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>background-color:</replace_>            <with_>background:</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Assumed # mark</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(background|color):([a-fA-F0-9]{3,6})</replace_>            <with_>$1:#$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Assumed pixel values</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(width|height|):\s*(\d\d*); </replace_>            <with_>$1:$2px; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>0px; -&gt; 0;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>:0(px|%);</replace_>            <with_>:0;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Empty hack: background</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>background:; </replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>HTML to CSS</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;hr/&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;\s*/?\s*hr([^/]*?)\s*&gt;</replace_>            <with_>&lt;hr$1 /&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;br/&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;\s*/?\s*br([^/]*?)\s*&gt;</replace_>            <with_>&lt;br$1 /&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;big&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)big</replace_>            <with_>&lt;$1big</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;small&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)small</replace_>            <with_>&lt;$1small</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;div&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)div</replace_>            <with_>&lt;$1div</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;font&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)font</replace_>            <with_>&lt;$1font</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;span&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)span</replace_>            <with_>&lt;$1span</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Combine &lt;font&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(&lt;font[^&lt;&gt;]*)&gt;&lt;font([^&lt;&gt;]*&gt;)(.*?&lt;/font&gt;)&lt;/font&gt;</replace_>            <with_>$1$2$3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;font&gt; link</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;font ([^&lt;&gt;]*)&gt;\[\[([^][|}{]*)\|([^][|}{]*)\]\]&lt;/font&gt;</replace_>            <with_>&lt;span $1&gt;$3&lt;/span&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;font&gt; inside link</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\[\[([^][|}{]*)\|&lt;font ([^&lt;&gt;]*)&gt;([^][|}{]*)&lt;/font&gt;\]\]</replace_>            <with_>&lt;span $2&gt;$3&lt;/span&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>XHTML</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>HTML Bolding to wiki bolding</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(/|)b&gt;</replace_>            <with_>'''</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Space in  link</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\[\[)(\s*)</replace_>            <with_>$2$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Capitalize [[Image:</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\[\[image: *</replace_>            <with_>[[Image:</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Capitalize [[Category:</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\[\[Category: *</replace_>            <with_>[[Category:</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Underscore removal</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\[\[[^|]*?)_([^|]*\|[^]]*\]\])</replace_>            <with_>$1 $2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>10</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>AWB General Fixes</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>tnavbar remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( \|[^\n|]*align[^\n|]*\|\s*|)\{\{tnavbar\|[^}]*\}\}</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>2</numoftimes_>            <ifContains_>navbox</ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>[edit] remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\[+[^][]*?(localurl:|en.wikipedia|server)[^][]*?action=[^][]*?edit[^][]*?\]+</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>localurl|action=edit</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Floating tnavbar remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(div|span)[^&lt;&gt;]*?(float|position)[^&gt;]*?&gt;\s*\{\{tnavbar\|[^}]*?\}\}\s*&lt;/(div|span)&gt;</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>        </Children>        <Name>Remove hard coding</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>toccolours -&gt; .infobox</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> (class|id)="toc(colours|)</replace_>            <with_> class="infobox</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>\{\|[^\n]*(float:|align=")right</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>toccolours -&gt; navbox</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> class="toccolours</replace_>            <with_> class="navbox</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>infobox</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>id=toc -&gt; class="navbox"</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> (class|id)="toc"</replace_>            <with_> class="navbox"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>infobox</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Rule</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>{|</replace_>            <with_>{| class="infobox"</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>\{\|[^\n]*(float:|align=")right</ifContains_>            <ifNotContains_>\{\|[^\n]*class=</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>No CSS class</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>{|</replace_>            <with_>{| class="wikitable"</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>\{\|[^\n]*</ifContains_>            <ifNotContains_>\{\|.*(class|(float:|align=")right)</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Multiline</ifRegexOptions_>          </IRule>        </Children>        <Name>Conversion strategies</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Default navbox text-align</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> class="navbox</replace_>            <with_> style="text-align:center; " class="navbox</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>navbox[^&lt;&gt;\n!|]*text-align:</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>float:center; remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>float:center; </replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Simplify: text-align:left; remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*text-align:left;.*)text-align:left; (.*\|\})</replace_>            <with_>$1$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>20</numoftimes_>            <ifContains_>text-align:left; </ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Simplify: text-align:center remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*text-align:center;.*)text-align:center; (.*\|\})</replace_>            <with_>$1$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>25</numoftimes_>            <ifContains_>text-align:center; </ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Dark Grey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>darkgrey</replace_>                <with_>darkgray</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Dim grey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>dimgrey</replace_>                <with_>dimgray</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Grey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>( style="[^"]*\W)grey</replace_>                <with_>$1gray</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Light Gray</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>lightgray</replace_>                <with_>lightgrey</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Light Slate Grey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>lightslategrey</replace_>                <with_>lightslategray</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Slate Grey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>slategrey</replace_>                <with_>slategray</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>            </Children>            <Name>Problematic color names in IE</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_> style="[^"]*gr[ae]y</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Six to three</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:REDUCE#([0-9A-F])[0-9A-F]([0-9A-F])[0-9A-F]([0-9A-F])[0-9A-F]; </replace_>                <with_>:#$1$2$3; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_>:REDUCE#</ifContains_>                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>            </Children>            <Name>Reduce CSS hex color</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>:#(00|11|22|33|44|55|66|77|99|AA|BB|CC|DD|EE|FF)(00|11|22|33|44|55|66|77|99|AA|BB|CC|DD|EE|FF)(00|11|22|33|44|55|66|77|99|AA|BB|CC|DD|EE|FF); </replace_>            <with_>:REDUCE#$1$2$3; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#000000 -&gt; black</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#0+; </replace_>                <with_>:black; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#000080 -&gt; navy</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#000080; </replace_>                <with_>:navy; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#0000FF -&gt; blue</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#(00|0000)FF?; </replace_>                <with_>:blue; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#800000 -&gt; maroon</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#800000; </replace_>                <with_>:maroon; </with_>                <regex_>false</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#800080 -&gt; purple</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#800080; </replace_>                <with_>:purple; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#008000 -&gt; green</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#008000; </replace_>                <with_>:green; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#FF0000 -&gt; red</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#F+(0000|00); </replace_>                <with_>:red; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#008080 -&gt; teal</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#008080; </replace_>                <with_>:teal; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#FF00FF -&gt; magenta</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#F+0+F+; </replace_>                <with_>:magenta; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#808000 -&gt; olive</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#808000; </replace_>                <with_>:olive;</with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#808080 -&gt; gray</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#808080; </replace_>                <with_>:gray; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#00FF00 -&gt; lime</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#0+F+0+; </replace_>                <with_>:lime; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#00FFFF -&gt; aqua</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#0+FF+; </replace_>                <with_>:aqua; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#C0C0C0 -&gt; silver</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#C0C0C0; </replace_>                <with_>:silver; </with_>                <regex_>false</regex_>                <regexOptions_>None</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#FFFF00 -&gt; yellow</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#(FFFF|F)00?; </replace_>                <with_>:yellow; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>#FFFFFF -&gt; white</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>:#F+; </replace_>                <with_>:white; </with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>            </Children>            <Name>Hex to named colors</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>:#</ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>CSS Magic</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;br&gt; before</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;br[^&lt;&gt;]*&gt;(.*?)\{\|</replace_>            <with_>$1{|</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;br&gt; after</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;br[^&lt;&gt;]*&gt;\s*$</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>&lt;center&gt; remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;[/]?center[^&lt;&gt;]*&gt;</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>class="noprint"</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> class="noprint"</replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>class="noprint</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> class="noprint</replace_>            <with_> class="</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>class="small"</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> class="small"</replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>font-size remover (80-99%)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>font-size:([8-9]\d)%; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>font-size remover (100-109%)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>font-size:[1][0][0-9]%; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>font-size remover (non-scaleable)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>font-size:[0-9]{1,3}(pt|px|pc); </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>font-size % to em</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(font-size:\d+)(\d)0%; </replace_>            <with_>$1.$2em; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Remove margin-</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>margin-[^:]*?:[^;]*?; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Remove all margins</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>margin:[^;"]*;* *</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table px -&gt; em width</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*width:\d\d)\dpx; </replace_>            <with_>$1em; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Narrow Table % -&gt; em width</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*width:([1-4][0-9]|50))%; </replace_>            <with_>$1em; </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table width=100%</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*)width:100%; </replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Center table if width</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>{|</replace_>            <with_>{| style="margin-left:auto; margin-right:auto; "</with_>            <regex_>false</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>\{\|[^\n]*width</ifContains_>            <ifNotContains_>\{\|[^\n]*margin</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Remove inherit properties</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^\{\|[^\n]*)text-align:center; </replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>^\{\|[^\n]*navbox</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Multiline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>clear:both;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>clear:both; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Border remove</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> border="\d"</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Cellspacing &amp; padding</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> cell(spacing|padding)="\d(px|)"</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>2</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Header cell if...</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^[!|]([^-][^|]*?background:.*)(.*?)</replace_>            <with_>!$1$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children>              <IRule xsi:type="Rule">                <enabled_>false</enabled_>                <Children />                <Name>Bring &lt;tr&gt; styles to top header</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>(\{\|[^\n]* \|-)([^\n]*\S)([^{!}]*![^{|}']\n]*)(\||)</replace_>                <with_>$1$3 $2|</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>IgnoreCase</ifRegexOptions_>              </IRule>            </Children>            <Name>Find top header</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*navbox[^\n]*)( \|-[^\n]*)* ([!|])([^\n]* \|-)</replace_>            <with_>$1$2 !$4</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>\{\|[^\n]* \|-[^-]!</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Kill #CCF background</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^(![^-|][^\n]*)background:#C+F+; </replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Kill #DDF background</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^(![^-|][^\n]*)background:#D+F+; </replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Kill .toccolour background</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>background:#dcdcdc; </replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>Navbox redundancy remover</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_>^(&lt;noinclude&gt;|)\{\|[^\n]*?navbox</ifContains_>        <ifNotContains_ />        <ifIsRegex_>true</ifIsRegex_>        <ifRegexOptions_>IgnoreCase Multiline</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>float:right;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>float:right; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>vertical-align:top;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>vertical-align:top; </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>color:black;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>color:(#000+|black); </replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>Infobox redundancy remover</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_>^\{\|[^\n]*?infobox</ifContains_>        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children />        <Name>Wikitable redundancy remover</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_> class="wikitable</ifContains_>        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>NavFrame: Tnavbar-navframe</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(&lt;div[^&lt;&gt;]*NavHead[^&lt;&gt;]*&gt;) *([^\\]*)\s*(&lt;/div&gt;[^/]*NavContent)</replace_>            <with_>$1 $3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>tnavbar-</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Deprecated parameter bgcolor</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>(tnavbar-.*\S)\s*\|\s*bgcolor=[^|}]*</replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>tnavbar-header adder</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\{\|[^\n]*?)( \|-[^\n]*)?([^-]*?) (![^\n!|'{}\[]*(\||))\s*(.+\S)([^-]*? \|)</replace_>            <with_>$1$2$3 $4 $7</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>tnavbar-</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Autobold tnavbar</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>(tnavbar.*?)'''</replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>2</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Hack: tnavbar inside</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>(tnavbar-.*?)\{\{tnavbar.*?\}\}</replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>HACK: &lt;br&gt; misalign</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>(tnavbar-.*?)&lt;br.*?&gt;</replace_>            <with_>$1&lt;br clear="all" /&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>4</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Find link colors</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(tnavbar-.*color:)(.*?)(.*subst:PAGENAME\}\})</replace_>            <with_>$1$2$3|fontcolor=$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>fontcolor=</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Encode pipes</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>(.*?\|([^][|]*(\[\^*?\]\]))*[^][|]*)\|(.*\|.*?subst:PAGENAME)</replace_>            <with_>$1&amp;#124;$4</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>8</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Unnamed parameters</Name>            <ruletype_>InsideTemplate</ruletype_>            <replace_>tnavbar-(collapsible|header|navframe)\s*\|([^}]*)\|\{\{subst:PAGENAME\}\}</replace_>            <with_>tnavbar-$1|1=$2|2=</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>\{tnavbar-[^}]*=[^\n]*PAGENAME\}</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>        </Children>        <Name>Tnavbar</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Make table collapsible</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^\{\|[^\n]* class="[^"]*?)( collapsible)*( autocollapse)*"</replace_>            <with_>$1 collapsible$3"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>class=|collapsible</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>autocollapse</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( class="[^"]*?)collapsible"</replace_>            <with_>$1collapsible autocollapse"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>autocollapse with conditions</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( class="[^"]*?)collapsible"</replace_>            <with_>$1collapsible autocollapse"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>(\{\|[^\n]*color:|color[^\n]*tnavbar|tnavbar[^\n]*color)</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Stop autocollapse if too few bytes</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> autocollapse</replace_>            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>^.{0,900}$|^.{100,750}&lt;noinclude&gt;</ifContains_>            <ifNotContains_ />            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Use  parameter</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> autocollapse</replace_>            <with_> </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>{{{state</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>tnavbar-collapsible convert</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\{tnavbar-(header|navframe)</replace_>            <with_>{tnavbar-collapsible</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Header text color</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^![^][}{|]*)\|(.*fontcolor=)(.*?)([|}].*)</replace_>            <with_>$1 style="color:$3;"|$2$3$4</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>^[^|]*color:[^|]*.*fontcolor</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Multiline</ifRegexOptions_>          </IRule>        </Children>        <Name>Collapsible Tables</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>IgnoreCase Multiline</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_>navbox</ifContains_>        <ifNotContains_ />        <ifIsRegex_>true</ifIsRegex_>        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table: Unbold</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\n![^\n]*\s*)([^\n]*)</replace_>            <with_>$1$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table: Unfont</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^[!|])(.*&lt;font.*?) style="(.*?)"(.*?&gt;[^][{}]*&lt;/font&gt;)\s$</replace_>            <with_>$1 style="$3"$2$4</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>font-weight:bold; remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^![^|]*)font-weight:bold; </replace_>            <with_>$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table: 100% width single cell</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\|-[^\n]* [!|][^\n]*)width:100%; ([^\n]* \|[-}])</replace_>            <with_>$1$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Table: Autobold (after optimization)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^([!|])([^|\n]*back[^|\n]*\|)\s*([^\n']*)\s*$</replace_>            <with_>!$2 $3</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style Merge</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> style="([^"!|&lt;&gt;\n]*?)"([^!|&lt;&gt;\n]*?) style="([^"!|&lt;&gt;\n]*?)"</replace_>            <with_>$2 style="$1$3"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>5</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style whitespace</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> style=" *([^"]*?) *;+ *"</replace_>            <with_> style="$1;"</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Style empty remover</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> style=" *"</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>2</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Place class= first</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( [^|!&lt;&gt;\r\n]*?)( class="[^"]*?")</replace_>            <with_>$2$1</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Place style= last</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>( [^|!&lt;&gt;\r\n]*)( style="[^"]*?")([^|!&lt;&gt;\r\n]*)</replace_>            <with_>$1$3$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Empty &lt;div&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;div[^&lt;&gt;]*&gt;(\s|&amp;nbsp;)*&lt;/div&gt;\s*</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Empty &lt;small&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_> *&lt;small[^&lt;&gt;]*&gt;(\s|&amp;nbsp;)*&lt;/small&gt; *</replace_>            <with_ />            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>5</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Cleanup: Empty &lt;span&gt;/&lt;div&gt; (Multi lined)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(span|div)\s*&gt;(.*)&lt;/(span|div)&gt;</replace_>            <with_>$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Cleanup: Empty &lt;span&gt;/&lt;div&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;(span|div|font)\s*&gt;(.*)&lt;/(span|div|font)&gt;</replace_>            <with_>$2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>&lt;foont&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>&lt;div&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>&lt;span&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table white-space</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(^[!|]([^+-|}][^][}{|\n]*\S|)) *\| *</replace_>            <with_>$1| </with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Table no attribs</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^([|!]) *\| *([^|]*)$</replace_>            <with_>$1 $2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>false</enabled_>            <Children />            <Name>Clean table: no attribs (link)</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>^([!|]) *\| *(([^][}{|]*(\{\{.*?\}\}|\[\[.*?\]\]))*[^][}{|]*)$</replace_>            <with_>$1 $2</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Multiline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Hack: !| {{tnavbar</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>! *\|? *\{\{tnavbar-</replace_>            <with_>! {{tnavbar-</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>        </Children>        <Name>Finalize Markup</Name>        <ruletype_>OnWholePage</ruletype_>        <replace_ />        <with_ />        <regex_>false</regex_>        <regexOptions_>None</regexOptions_>        <numoftimes_>1</numoftimes_>        <ifContains_ />        <ifNotContains_ />        <ifIsRegex_>false</ifIsRegex_>        <ifRegexOptions_>None</ifRegexOptions_>      </IRule>      <IRule xsi:type="Rule">        <enabled_>true</enabled_>        <Children>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Prefix Template: sortkey</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>(\[\[Category:[^|]*\|)(template:|)([^]]*\]\])</replace_>                <with_>$1Template:$3</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Unsubst: Category {{PAGENAME}}</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>(\[\[Category:[^|]*\|)%%title%%\]\]</replace_>                <with_>$1{{PAGENAME}}]]</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>              <IRule xsi:type="Rule">                <enabled_>true</enabled_>                <Children />                <Name>Remove template from pages</Name>                <ruletype_>OnWholePage</ruletype_>                <replace_>(\[\[Category:[^|]*\|)(template:|)([^]]*\]\])</replace_>                <with_>$1$3</with_>                <regex_>true</regex_>                <regexOptions_>IgnoreCase</regexOptions_>                <numoftimes_>1</numoftimes_>                <ifContains_ />                <ifNotContains_ />                <ifIsRegex_>false</ifIsRegex_>                <ifRegexOptions_>None</ifRegexOptions_>              </IRule>            </Children>            <Name>Unsubst:{{PAGENAME}} in cats</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_ />            <with_ />            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Lack of &lt;noinclude&gt;/&lt;includeonly&gt;</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\s*(\[\[Category:.*\]\])</replace_>            <with_>&lt;noinclude&gt; $1 &lt;/noinclude&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>Category</ifContains_>            <ifNotContains_>&lt;noinclude&gt;|&lt;includeonly&gt;</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Category sort key</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\[\[Category:\s*([^|\]]*?)\]\]</replace_>            <with_></with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>DEFAULTSORT:</ifNotContains_>            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>IgnoreCase</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Better {{uncategorized}} tag</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>&lt;noinclude&gt;\s*\{\{Uncategorized[^}]*?\}\}\s*&lt;/noinclude&gt;\s*(.*\S)\s*</replace_>            <with_>$1&lt;noinclude&gt; {{Uncategorized template|{{subst:DATE}}}} &lt;/noinclude&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>{{Uncategorized</ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>No category</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\S)\s*$</replace_>            <with_>$1&lt;noinclude&gt; {{Uncategorized template|{{subst:DATE}}}} &lt;/noinclude&gt;</with_>            <regex_>true</regex_>            <regexOptions_>IgnoreCase Singleline</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_>\{\{Uncategorized|&lt;noinclude.*\[\[Category:.*noinclude&gt;</ifNotContains_>            <ifIsRegex_>true</ifIsRegex_>            <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Uncategorize type=navbox</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>{{Uncategorized template|{{subst:DATE}}}}</replace_>            <with_>{{Uncategorized template|type=navbox|{{subst:DATE}}}}</with_>            <regex_>false</regex_>            <regexOptions_>None</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_>navbox</ifContains_>            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Categories on different lines</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>\]\]\s*\[\[Category:\s*</replace_>            <with_>]] [[Category:</with_>           <regex_>true</regex_>            <regexOptions_>IgnoreCase</regexOptions_>            <numoftimes_>1</numoftimes_>            <ifContains_ />            <ifNotContains_ />            <ifIsRegex_>false</ifIsRegex_>            <ifRegexOptions_>None</ifRegexOptions_>          </IRule>          <IRule xsi:type="Rule">            <enabled_>true</enabled_>            <Children />            <Name>Line between cat &amp; iw</Name>            <ruletype_>OnWholePage</ruletype_>            <replace_>(\[\[Category:[^]]*?\]\])\s*(\[\[.{2,6}:)</replace_> <with_>$1
 * }$1</with_>

$2</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>Double &lt;/noinclude&gt;</Name> <ruletype_>OnWholePage</ruletype_> <replace_>&lt;/noinclude&gt;\s*&lt;noinclude&gt;</replace_> <with_ /> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>New line after &lt;noinclude&gt;</Name> <ruletype_>OnWholePage</ruletype_> <replace_>\|\}\s*(.*?)&lt;noinclude&gt;\s*(.*?)\s*&lt;/noinclude&gt;\s*</replace_> <with_>|}&lt;noinclude&gt; $2 &lt;/noinclude&gt; $1</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Singleline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_>\|\}.*\|\}</ifNotContains_> <ifIsRegex_>true</ifIsRegex_> <ifRegexOptions_>IgnoreCase Singleline</ifRegexOptions_> </IRule> </Children> <Name>&lt;noinclude&gt;, categories, interwikis</Name> <ruletype_>OnWholePage</ruletype_> <replace_ /> <with_ /> <regex_>false</regex_> <regexOptions_>None</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>true</enabled_> <Children /> <Name>hack</Name> <ruletype_>OnWholePage</ruletype_> <replace_>^([!|])([^|{]*)&lt;font ([^&lt;&gt;]*)&gt;([^][}{|]*)&lt;/font&gt;</replace_> <with_>$1 $3|$2$4</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase Multiline</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> <IRule xsi:type="Rule"> <enabled_>false</enabled_> <Children /> <Name>Old AWB versions linebreaks</Name> <ruletype_>OnWholePage</ruletype_> <replace_>(\S)\n(\S)</replace_> <with_>$1\r\n$2</with_> <regex_>true</regex_> <regexOptions_>IgnoreCase</regexOptions_> <numoftimes_>1</numoftimes_> <ifContains_ /> <ifNotContains_ /> <ifIsRegex_>false</ifIsRegex_> <ifRegexOptions_>None</ifRegexOptions_> </IRule> </AdvancedReps> <SubstTemplates> {{bv}} {{chembox simple inorganic}} {{chembox simple organic}} {{chembox}} {{conv-dist}} {{conv-temp}} {{doctl}} {{lived}} {{newvoter}} {{nld}} {{nn-warn}} {{nsd}} {{obscene}} {{oldmfd}} {{Prettyinfobox}} {{Prettytable-center2}} {{Prettytable-center}} {{Prettytable95}} {{Prettytable100center}} {{Prettytable100}} {{PrettytableN}} {{Prettytablewidth}} {{prettytable}} {{sofixit}} {{sup}} {{tilde}} {{tmfrom}} {{tmto}} {{vw}} </SubstTemplates> </FindAndReplace> <Editprefs> <GeneralFixes>true</GeneralFixes> <Tagger>true</Tagger> <Unicodify>true</Unicodify> <Recategorisation>1</Recategorisation> <NewCategory /> <NewCategory2 /> <ReImage>0</ReImage> <ImageFind /> <Replace /> <SkipIfNoCatChange>false</SkipIfNoCatChange> <SkipIfNoImgChange>false</SkipIfNoImgChange> <AppendText>false</AppendText> <Append>true</Append> <Text /> <AutoDelay>44</AutoDelay> <QuickSave>false</QuickSave> <SuppressTag>false</SuppressTag> <OverrideWatchlist>false</OverrideWatchlist> <RegexTypoFix>false</RegexTypoFix> </Editprefs> <General> <AutoSaveEdit> <Enabled>false</Enabled> <SavePeriod>30</SavePeriod> <SaveFile>Edit Box.txt</SaveFile> </AutoSaveEdit> <SelectedSummary>Navbox script, better CSS+XHTML, collapsible, and v-d-e,</SelectedSummary> <Summaries> Navbox conformity, better CSS+XHTML, collapsible, and v-d-e, Navbox script, better CSS+XHTML, collapsible, and v-d-e, </Summaries> <PasteMore> style="text-align:left;" style="text-align:center;" style="vertical-align:top;" style="width:100%;" style="background:transparent; " colspan="2" rowspan="2" style="border-collapse:collapse; " style="color:white; " style="" </PasteMore> <FindText>cat</FindText> <FindRegex>true</FindRegex> <FindCaseSensitive>false</FindCaseSensitive> <WordWrap>true</WordWrap> <ToolBarEnabled>true</ToolBarEnabled> <BypassRedirect>true</BypassRedirect> <NoAutoChanges>false</NoAutoChanges> <OnLoadAction>0</OnLoadAction> <Minor>false</Minor> <Watch>true</Watch> <TimerEnabled>true</TimerEnabled> <SortInterwikiOrder>false</SortInterwikiOrder> <AddIgnoredToLog>true</AddIgnoredToLog> <TextBoxSize>10</TextBoxSize> <TextBoxFont>Courier New</TextBoxFont> <LowThreadPriority>false</LowThreadPriority> <FlashAndBeep>false</FlashAndBeep> <Beep>true</Beep> <Flash>true</Flash> <Minimize>false</Minimize> <LockSummary>false</LockSummary> <SaveArticleList>true</SaveArticleList> <TimeOutLimit>30</TimeOutLimit> <IgnoreNoBots>false</IgnoreNoBots> <CustomWikis> </CustomWikis> </General> <SkipOptions> <SkipNonexistent>true</SkipNonexistent> <Skipexistent>false</Skipexistent> <SkipWhenNoChanges>false</SkipWhenNoChanges> <SkipDoes>false</SkipDoes> <SkipDoesNot>false</SkipDoesNot> <SkipDoesText>\{\{\{|class="navbox</SkipDoesText>   <SkipDoesNotText>\{\|[^\n]*[="](toc)</SkipDoesNotText> <Regex>true</Regex> <CaseSensitive>false</CaseSensitive> <SkipNoFindAndReplace>true</SkipNoFindAndReplace> <SkipNoRegexTypoFix>false</SkipNoRegexTypoFix> <SkipNoDisambiguation>false</SkipNoDisambiguation> <GeneralSkip>0</GeneralSkip> </SkipOptions> <Module> <Enabled>false</Enabled> <Language>0</Language> </Module> <Disambiguation> <Enabled>false</Enabled> <Link /> <Variants /> <ContextChars>20</ContextChars> </Disambiguation> <Logging> <LogVerbose>false</LogVerbose> <LogWiki>false</LogWiki> <LogXHTML>false</LogXHTML> <UploadYN>false</UploadYN> <UploadAddToWatchlist>false</UploadAddToWatchlist> <UploadMaxLines>0</UploadMaxLines> <UploadOpenInBrowser>false</UploadOpenInBrowser> <UploadToWikiProjects>false</UploadToWikiProjects> </Logging> <Plugin> <PluginPrefs> <Name>CFD-Plugin</Name> </PluginPrefs> </Plugin> </AutoWikiBrowserPreferences>