fixed regex test for slashes which was not windows friendly