remove console.log, cache regexp