How to list all process directories under /proc/

Ky-Anh Huynh saigon at example.net
Tue Sep 19 13:32:29 UTC 2017


On Tuesday, 19 September 2017 at 06:35:18 UTC, Matt Jones wrote:
> On Sunday, 17 September 2017 at 08:37:33 UTC, Ky-Anh Huynh 
> wrote:
>
>> [...]
>
> The problem with matching "[0123456789]*" is that it will match 
> files like "1blah" and "8stuff". It looks like glob patterns 
> are not robust enough to handle match patterns you want. A 
> regex would probably be enough. Something like this works:
>
> [...]


I understand. Thanks a lot.

Btw, is that a bit weird that range is not supported in glob 
pattern :) Is there a design reason for this?


More information about the Digitalmars-d-learn mailing list