Tom: Glob() und erlaubte Patterns

Beitrag lesen

Hello,

Woher soll ich wissen, wie weit Du schon warst? Bei mir gibt jedenfalls ein

~> man n glob
und/oder
~> man 7 glob

einiges zu "Pattern" her.

Ach ja, da war doch mal 'was :-)

GLOB_BRACE
            Expand  csh(1)  style  brace  expressions  of  the  form {a,b}.  Brace expressions can
            be nested.  Thus, for example, specifying the pattern
            "{foo/{,cat,dog},bar}" would return the same results as four separate glob() calls
            using the  strings:  "foo/",  "foo/cat",  "foo/dog",  and "bar".

Das muss ich nochmal ausprobieren im PHP-glob().

Liebe Grüße aus dem schönen Oberharz

Tom vom Berg

--
 ☻_
/▌
/ \ Nur selber lernen macht schlau
http://bergpost.annerschbarrich.de