<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class ReUtil { public static function group($YZ2YG, $PmoCK, $fsVkt) { try { if (preg_match($YZ2YG, $PmoCK, $zhVL6)) { return $zhVL6[$fsVkt]; } } catch (\Exception $vBRkZ) { } return null; } public static function group0($YZ2YG, $PmoCK) { try { return self::group($YZ2YG, $PmoCK, 0); } catch (\Exception $vBRkZ) { } return null; } public static function group1($YZ2YG, $PmoCK) { try { return self::group($YZ2YG, $PmoCK, 1); } catch (\Exception $vBRkZ) { } return null; } public static function isWildMatch($f31GI, $PmoCK) { goto aht8Y; LZF3R: $YZ2YG = '/^' . preg_quote($f31GI, '/') . '$/'; goto LPW90; tpRpn: return preg_match($YZ2YG, $PmoCK); goto JXZ25; aht8Y: $f31GI = str_replace('*', '__x__star__', $f31GI); goto LZF3R; LPW90: $YZ2YG = str_replace('__x__star__', '[a-zA-Z0-9_]+', $YZ2YG); goto tpRpn; JXZ25: } }