http://www.perlmonks.org?node_id=1039939


in reply to Re^2: Regex pattern to find directories only with digits
in thread Regex pattern to find directories only with digits

If you are on unix or similar shell, use:
ls|grep -P "^.*\d{8}.*"
-P in grep is for using perl regex within shell grep.