[ Index ]

PHP Cross Reference of phpBB-3.3.14-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: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1