clean up regex