sed string manipulation

hi
I am using sed to split a string
this string is 11byteabc I would like to just get the numeric digits.

echo "11byteabc" | sed 's/*[a-z]//

returns 11byteabc

only solution that works is repeating [a-z] number of times for the letters which is pointless

grateful for any suggestions
thanks

The correct syntax for the regex is :

echo "11byteabc" | sed 's/[a-z]//g'

or

echo "11byteabc" | sed 's/[^[:digit:]]//g'

Jean-Pierre.

thank you Jean-Pierre for the fast solution

echo "11byteabc" | tr -cd [:digit:]

Hey everybody

I need some help on how to order the data in file such as a file have first name last name and city and i would like to order them to in the same order by using sed

thanks alot for your time