Fancy new regex implementation