Fix problems found while writing regex docs