alias a simple ls -l command

how do I alias the following command:
ls -l |egrep 'drw|dr-|d--|d-w'

The alias command needs single quotes and so does the above command, so this does not work:

alias LSDIR 'ls -l |egrep 'drw|dr-|d--|d-w' '

My problem is how do I get a listing of only directories?
Solaris 8
SUN Ultra 10

Thank you so much!

alias lsdir="ls -l |egrep 'drw|dr-|d--|d-w'"

Hope it will work for you

Why bother with an alias.

ls -ld

thank you bobbydsk, the double quotes was the magic... that works.
I dont know why, but ls -ld does not give me a listing of directories....?

how about this

alias lsdir="ls -l |grep ^d"