Reworked XiRegex constructor to make it similar to that of its superclass, XiString.