<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class ReUtil { public static function group($W21kU, $QvR6j, $phITG) { try { if (preg_match($W21kU, $QvR6j, $S8gta)) { return $S8gta[$phITG]; } } catch (\Exception $SwVsw) { } return null; } public static function group0($W21kU, $QvR6j) { try { return self::group($W21kU, $QvR6j, 0); } catch (\Exception $SwVsw) { } return null; } public static function group1($W21kU, $QvR6j) { try { return self::group($W21kU, $QvR6j, 1); } catch (\Exception $SwVsw) { } return null; } public static function isWildMatch($iyB0h, $QvR6j) { goto W2AIb; W2AIb: $iyB0h = str_replace('*', '__x__star__', $iyB0h); goto rApIL; rApIL: $W21kU = '/^' . preg_quote($iyB0h, '/') . '$/'; goto k3OVu; LcDIA: return preg_match($W21kU, $QvR6j); goto qpfN6; k3OVu: $W21kU = str_replace('__x__star__', '.*', $W21kU); goto LcDIA; qpfN6: } public static function replace($BWI89, $W21kU, $uTSeU) { goto beqHI; PBiPx: return $BWI89; goto fIWNz; kkOKG: foreach ($S8gta[0] as $tMyPy => $Q0rz2) { goto IR3j9; mwRTM: $BWI89 = str_replace($Q0rz2, $rBJDz, $BWI89); goto Eo1Gu; IR3j9: $EzOZh = array_map(function ($xQd0K) use($tMyPy, $S8gta) { return $xQd0K[$tMyPy]; }, $S8gta); goto Omc69; Omc69: $rBJDz = call_user_func_array($uTSeU, array($EzOZh)); goto mwRTM; Eo1Gu: } goto PBiPx; beqHI: preg_match_all($W21kU, $BWI89, $S8gta); goto kkOKG; fIWNz: } }