Implement Syntax Parser for Regex.