The script regexReplace("A1009.DCE", "\\D+", "") outputs different results in Linux and Windows.
Windows:
regexReplace("A1009.DCE", "\\D+", "")
A.CE
Linux:
regexReplace("A1009.DCE", "\\D+", "")
A1009CE
The script regexReplace("A1009.DCE", "\\D+", "") outputs different results in Linux and Windows.
Windows:
regexReplace("A1009.DCE", "\\D+", "")
A.CE
Linux:
regexReplace("A1009.DCE", "\\D+", "")
A1009CE
Copyright © 2021 Jogjafile Inc.
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.