fix my dodgy regex