Added Windows regexp in error comparison