This is attributed to the different implementations of regular expressions in Linux and Windows. The Linux version applies POSIX BRE (Basic Regular Expression) syntax provided by GNU grep, which does not support abbreviations such as “\D“. The Windows version applies C++'s standard regex library, which supports many regular expressions that cannot be parsed in Linux.
This is attributed to the different implementations of regular expressions in Linux and Windows. The Linux version applies POSIX BRE (Basic Regular Expression) syntax provided by GNU grep, which does not support abbreviations such as “\D“. The Windows version applies C++'s standard regex library, which supports many regular expressions that cannot be parsed in Linux.