changes ending regex to catch all