Regex implementation finished