Fixed regex. It seems slre doesn't conform well to the same rigor other regex engines do.