WordPress at Your Fingertips
function is not described

ftp_base::glob_regexp() public WP 1.0

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

$ftp_base = new ftp_base();
$ftp_base->glob_regexp( $pattern, $probe );
$pattern (required)
-
$probe (required)
-

Code of ftp_base::glob_regexp() WP 5.8.2

function glob_regexp($pattern,$probe) {
	$sensitive=(PHP_OS!='WIN32');
	return ($sensitive?
		preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $probe ) :
		preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $probe )
	);
}