Convert regex containing Posix character classes for use in Powershell modules.