debug for regex.