\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
More Related Contents:
- Insert contents of a file after specific pattern match
- sed join lines together
- What’s wrong with my lookahead regex in GNU sed?
- Sed to extract text between two strings
- Whats the difference between sed -E and sed -e
- Is it possible to escape regex metacharacters reliably with sed
- Non greedy (reluctant) regex matching in sed?
- Regex (grep) for multi-line search needed [duplicate]
- Find and kill a process in one line using bash and regex
- RE error: illegal byte sequence on Mac OS X
- How can I output only captured groups with sed?
- How can I delete a newline if it is the last character in a file?
- AWK: Access captured group from line pattern
- How to extract string following a pattern with grep, regex or perl [duplicate]
- Split text by columns in PowerShell
- How to print matched regex pattern using awk?
- How to replace a whole line with sed?
- Does lookbehind work in sed?
- How can I insert a tab character with sed on OS X?
- Replace newlines with literal \n
- How to use awk variables in regular expressions?
- Easiest way to extract the urls from an html page using sed or awk only
- replace a unknown string between two known strings with sed
- Recursively change file extensions in Bash
- Insert multiple lines into a file after specified pattern using shell script
- How do I use a new-line replacement in a BSD sed?
- Using sed and grep/egrep to search and replace
- How to change date format in sed?
- Replace whitespace with a comma in a text file in Linux
- How to make “grep” read patterns from a file?