It's quite difficult to do a concise globbing function, which is why it's recommended that you use the libc glob() function if it's available.

--
Mats