Ported over the regex code