Answers for "regex to not allow numbers and special characters"

1

regex all not numbers

echo 1a2b3c | sed 's/[^0-9]//g'	#Replaces all not numbers
abc
Posted by: Guest on November-27-2020
1

regex match numbers and special characters

echo %H1E2L+L#O! | sed 's/[^A-Z!]//g'	#replaces number and special
characters which aren't ! or an uppercase letter A-Z
Posted by: Guest on November-27-2020

Code answers related to "regex to not allow numbers and special characters"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language