capital sed

Hi everyone.
I wanted to convert capital characters to small one.
So i tried to use:

sed -e "y/[A-Z]/[a-z]/"

but this won't work.
And

sed -e "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"

this worked well.

Does anyone know why??

sed's y command does not allow regular expressions. Take a look at "man tr" if you want to use ranges like that.

Thank you Perderabo.

But I want to do this on variables, so sed -e will do.