update TreeRegex