Made Regex part of the kernel