Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
regex all not numbers
AProcter
Programming language:
Shell/Bash
2021-05-31 07:07:31
0
Q:
regex all not numbers
Ani
Code:
Shell/Bash
2021-03-01 20:53:32
echo 1a2b3c | sed 's/[^0-9]//g' #Replaces all not numbers abc
0
Tags
number
Related
accept only numbers regex
regex match any number of digits
regex for a digits
New to Communities?
Join the community