Fixed regex intent to replace a sequence instead of each element of a matching set