replace cAlgo keywords. Regex implementation