Simplifying regexp.