Regex demo and changed generateColor lock