Fix broken regex test

Windows fix broke it for OS X, hopefully this works more portably