This would be clearer if the regex allowed only "edit" or "delete" using a | operator