\d is a switch not a regular expression macro. If you want to use some predefined “constant” instead of [0-9] expression just try run this code:
s/[[:digit:]]+//g
\d is a switch not a regular expression macro. If you want to use some predefined “constant” instead of [0-9] expression just try run this code:
s/[[:digit:]]+//g