bunch of ruleset bugs

This is based on the ruleset in the Chrome extension based on a recent git checkout.

the to rule should not have a dot (or move the dot outside the capture)

--

the group should be capturing for $1 to work (www.)


The last part should be $2


No dot in the replacement since $1 already captures the dot