<=rh` ** *@`askaGe ! dRmgulaò!Nabs Dhbrqjy * @tERsh/î `"! 1 24.1.1000*`* : @autior" $ ( PoTer ÅAf _å{ten" * |ink ` €   (tpps://r}guî`rl!bsncoM $@coxYriç`d0 0 o0yriwht «82024 Regular" #bshÁèl Riçht{ Vase2v%D ªbÐnIbeoqe NU Genupm$Zwclic Licå®ru Vergion02 or lAter (/ oamespacd0Regu,arLacs^Lmfrasy: Šdefi~eD('_JEØECg)¡or lie3 b,aS3pregE8*{ h -+"   ()P%rform q(ò$gujar exprmssiOo mApbh!¡r`*Š, 0pqblic0staT+c Nunction mct#h(   ( "string $p!vdern,B # ( 0strinf stri&g, !& $ " " ¢ &,-aucx = nuüh, "0  ?{trand ¤optiïns = oulm, "!` "!int" dflags =€° ` ¹> int ` ` { !` $ hf$8umpp{(%surine)||!empt}(4pAttern)) à ` "{ 0 ( rettrê falseX 0 `! $_    0 $páptårn % salf8praqariPátper.(&pattern<)$oqtions, $s|ryhd)?    !  res}hv = pregDmaäch($0a4pe2f, $stping, $mitcH,"$dl!gzi; ¡$ 0( //$åmoteàalì`numErac [d9ó åXcepd 0 ! $n_nwmezIavAlues9)array_æifphp ! ! " $match,  !#0 % 'j($k%9© => ! hs_ind($kuy) || key =}="0, ( "" ! !ARRAY_ÆiLUJ_USe^KeY;   "  ?o( F the leftovEò0ar~`yco}.ts mmzu vha^ 2 (so çontiins famed 'Bnuðs), :eplace $}atch éf jcoqj4($n/_ïumt2icvaLuUó) > 1) "  { ` " "d}atch(u $fo_nu-'ricOvalues; 9 $ # " cetuRn $reSult? (` `} ¤(" /*: ! * PGrvgrm q`F|oj`L rdguhar Expressifl mctch ª */* pujnic"stItià ftnCtion íatbn@lx( 0`0 qtring %patEò.< 0 s4rang" $stpInm, ! ` ! rP &¤oa|ches = nuld¬ $ ?strm.g $opt©ons ?$oull, " ! int % ,flags(= pÒEg_SE_OREGR -2 int ( { p "  if hem0ty($s|riJg) ü| emðty(4tqôtern+)J " ! ${ `   ( ¤matchus > Ju; J ! ! `$ `rm4urn(f!-se; ` 0 ! }J ( 0 0 $P!tternà=$sen&:prmparePkttgrn( pátt%rN, $optkons,0¥string++ €0   `($resULt= `ree_eadw(_cll¨$0attarn, $striNg, $matklep,$fnags ;Š (($ $ af ) ¡ ,Re3u,v) ` "{   # r%t}r. false: ¢$}"  ` mf ( Vl1çs¤½= @ReG_ODFQGDßCAPPURE)  ""{ ) `   ¢/ Be}owe!aLl"numeric keys excgpt!0 "10 0 $$jo_numebic_vanums =`asrAy_filter( "$!!! 0   $-a>cI¥s,   "   !  !bnn,$key) > is_int(ô ayé!|| $kmy ?==0, d   $ ( !! ARRI_FÛMTEÒeSEe_eY); Ë` ` /. If the0lMvöove2 arráY Ccunts¤Lusó than 2 (1o no!named orkepS), don'v con|ibue "  kf ,ãoµ~P($ngWîUmerHc_vaLUeSi P`0)""! "` ! { ! 0(`$ òeturn,res}lt; " } ) !) 4mñtkheÓ = %no]numårib_vah5eS?J $ ` ,2gturn°$reselt+Š (0 ` ` $ iv )$F|!gs !="PREÇßSETzKRLWRi #€"`  { $" (  retuzn &vesdlt; ! ! } ! $foze`ch($matches I{$&$maTbh)    (" !0{ 4 ` "/? RemorE qìl fumDria0oeùs!eXcepp 4 ! "  `" $noWnÕíepicOöaltes } a2ray_fiLteR( 0 ! ! " $mat#h, 0¢ 0 $ `fn,$kgy)0>`1 as]intj$key! || $ie} 9=}"0,!$ "` 0" ARAY{FMLTERSE_KEÙ%;*. 0 !./ If phu lefto0ez apreY coun4s ,lss \han 2 )so no namc% grouqs), do,'t aontin5e d( ¤$ 0if (co÷nt($îg]fõmericWta~euö) < 3) { " 8 0 ( bse!k !  & p } `   %mátch } $oï_numepi]wqìuec; 0 }J $` ` retusn $rmsult;! %m 0! ".** (" "* preg_qtow%$the gk6el striNg or árrA} F óôsangs  * pUblmc static funcdion!jam/gr¯eq(strile $ata,$qàring $ja-e = 7§)z strmng "0 {J$¤ "" retqrn %64'!. $ngmm . '>'$& $d`ta".0g+'; (" u $ /*+ !%`b : Iake asurInW a validpregulas dx`re{siff ateebn` 0((*/ $ xõ"lAc)st94ib fenctI+n qòepdvePatteòn( "0 ((4" sôrIne|arriy dpaptebn< ` `(`?stz)Ng �0 0-optiozs = null, ! $( stVioG!((! !¥sTrmïç ="' 0):!Svr-Ng|arraù & {   0 &array$< AR3ciHedper::apxLyEethodtïFalues([$pg||erN,$nptëons, strxno)? 0" if ( ¡ hs_nullˆ$arrey))* (! ; ` `"``retuÒî $arr18; ` !} i&"( )"c4rWstartS_i4hH$xatvarn, #)) ` )$ { "$o`païns = a4is_êull)$gñôions+"? ¤opô+onc : 'si; ! 4 $patte2. =a&#'$' $pavter.`ª '#' ,$$ortioNs;Š( " 0u* !   (! id 9StringHdnpeò8:DetectUTF8 dztRing)- ë   à) /' usd upæ­4 ( return" pattårn". 'u'; & `!  2}  # Betu2l $pAttern; "` }N ( 'h*   * 0reg_quote the given string or array of strings */ public static function quote( string|array $data, string $name = '', string $delimiter = '#' ): string { if (is_array($data)) { if (count($data) === 1) { return self::quote(array_pop($data), $name, $delimiter); } $array = self::quoteArray($data, $delimiter); $prefix = '?:'; if ( ! empty($name)) { $prefix = $name ? '?<' . $name . '>' : ''; } return '(' . $prefix . implode('|', $array) . ')'; } if ( ! empty($name)) { return '(?<' . $name . '>' . preg_quote($data, $delimiter) . ')'; } return preg_quote($data, $delimiter); } /** * preg_quote the given array of strings */ public static function quoteArray(array $array, string $delimiter = '#'): array { array_walk($array, function (&$part, $key, $delimiter) { $part = self::quote($part, '', $delimiter); }, $delimiter); return $array; } /** * Perform a regular expression search and replace */ public static function replace( string $pattern, string $replacement, string $string, ?string $options = null, int $limit = -1, ?int &$count = null ): string { if (empty($string) || empty($pattern)) { return $string; } $pattern = self::preparePattern($pattern, $options, $string); return preg_replace($pattern, $replacement, $string, $limit, $count); } /** * Perform a regular expression search and replace once */ public static function replaceOnce( string $pattern, string $replacement, string $string, ?string $options = null ): string { return self::replace($pattern, $replacement, $string, $options, 1); } /** * Perform a regular expression split */ public static function split( string $pattern, string $string, ?string $options = null, int $limit = -1, int $flags = PREG_SPLIT_DELIM_CAPTURE ): array { if (empty($string) || empty($pattern)) { return [$string]; } $pattern = self::preparePattern($pattern, $options, $string); return preg_split($pattern, $string, $limit, $flags); } /** * reverse preg_quote the given string */ public static function unquote(string $string, string $delimiter = '#'): string { return strtr($string, [ '\\' . $delimiter => $delimiter, '\\.' => '.', '\\\\' => '\\', '\\+' => '+', '\\*' => '*', '\\?' => '?', '\\[' => '[', '\\^' => '^', '\\]' => ']', '\\$' => '$', '\\(' => '(', '\\)' => ')', '\\{' => '{', '\\}' => '}', '\\=' => '=', '\\!' => '!', '\\<' => '<', '\\>' => '>', '\\|' => '|', '\\:' => ':', '\\-' => '-', ]); } } 0 Class "RegularLabs\Library\RegEx" not found

0 Class "RegularLabs\Library\RegEx" not found