in reply to Re: list of fles in a directory, but use wildcards like *
in thread list of fles in a directory, but use wildcards like *

simonm,
Just a nit

While this works nearly 100% the same as the glob, it is not exactly the same. This is because some operating systems, *nix for instance, support imbedded newlines in file names. I would recommend adding the s modifier, using something like (\d|\D)* in place of .*, or just annotating that it won't match files with imbbedded newlines.

Cheers - L~R

  • Comment on Re: Re: list of fles in a directory, but use wildcards like *