edit a regular expression