return regex to original form