How about showing us the exact command you used? It sounds like you have a syntax error somewhere.
This should work in simple cases, but will throw an error if there are no subdirectories to match.
Note though that it's not advisable to parse ls for a script
Which leads me to the big question...what do you need this for? If you tell us what your true goal
is, it may be that there's a better solution.