[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/symfony/finder/ -> Glob.php (summary)

(no description)

File Size: 116 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Glob:: (1 method):
  toRegex()


Class: Glob  - X-Ref

Glob matches globbing patterns against text.

if match_glob("foo.*", "foo.bar") echo "matched\n";

// prints foo.bar and foo.baz
$regex = glob_to_regex("foo.*");
for (['foo.bar', 'foo.baz', 'foo', 'bar'] as $t)
{
if (/$regex/) echo "matched: $car\n";
}

Glob implements glob(3) style matching that can be used to match
against text, rather than fetching names from a filesystem.

Based on the Perl Text::Glob module.

toRegex($glob, $strictLeadingDot = true, $strictWildcardSlash = true, $delimiter = ')   X-Ref
Returns a regexp which is the equivalent of the glob pattern.

param: string $glob                The glob pattern
param: bool   $strictLeadingDot
param: bool   $strictWildcardSlash
param: string $delimiter           Optional delimiter
return: string regex The regexp



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1