This works for me on a Windows Haskell install:
> length $ ((pack ['\1'..'\253']) =~ "." :: [[ByteString]])
252
I.e. dot matches all characters in range including code 253.
Note that the library calls out to the underlying posix regex matcher, typically, I assume, from glibc
.
So I would imagine any issue you have would be with that precise underlying c implementation.
Something like Text.Regex.TDFA.ByteString
might give you clearer behavior in this case, since it is all in Haskell?