repeated regexp -> constant