<=rh`** *@paskaGe ! 0 `R}gulaò!Nabs Dhbraz9 * @tERsi/î b 1 24.1.1000*`* (: @autior"! $ Poter0ECn _å{ten" !* |ink ` €   (tpps:-/r}guî`rl!bsncom $ $@coxYriçhd8 0 O0yright «02024 Regular"L#bshÁèl Rkçht{ Vese2~'D$ªbPlIbenqe GNU Oenqp!m$Pwclic Licå®ru Vergion02 or lAter (/ oameópacd0Regu,arLacs^LMfra{y: Šdefi~ed('ßJEXEC')¡or lia3 b,ass`rdgE8({ ( -+"   ()P%rform a(ò%gujar epPrmssioo mApbh ¡r`*Š, (pqblic0staD+c Îunction mat#h(‚   8 string" $p!ttern,B $ ( 0strinf  strifg, !&($ " " ¢ &,/aucx0? nuüh, 0  ?{trane $options = oulm, "! " " int` d&lags =° ` ): int `  { ` hf 8umpp{($suòine)||!emp|}(4rAttern)) ( à "{ 0 ( returî fal3uX0 !à! $[    $páptårn % s`lf:prarariPatpern(&pattern<)$oqteons, $stri,e);   ! res}lv = pregDmaäch(%patpe2n, $string, $mitcH, $dl!g{); ¡$ 0( //$åmoteàClì`numerac [d9s excepd"0 $nk_nwMerIavAfues 9)array_æinphpH ! " $match,  !"0 $ &j($k%9© => ! hs_mnd($kuy) || ke9 =}=!0- ( "" "$! !ARRAY߆iLTUB_USe_KeY;   "  ?o( F tie leftovEò0arv`yck}.ts mozu vhaN 2 (so ãontiins famed 'bouðs)  2ep,age $yatch  iF jcoqj4($n_îumtricvaLuuó) < 1 "  { ` " "d}atch(u $fo_nu-'ricOöal}es» $ ; $ # & cetuRn $R%Sqlt? ( p} ¤(" /*: !  "* PGrvgsm q F|oj`L zdgular Expressifl match ª */. ( pujnic"stItmà funCtion íatblAlx( 0` $ qtring ,$patGrn, 0 s4rang $stpInm, %!p( "P &¤ïa|ches = nuldì ($ ?stbmng $opt©ons ?$oull, " ! int % ,flagc(= PÒEg_SE_ORDGR $" -2 int "[ ` "( ¤ifhem0ty($s|riJg) ü| emðty(4tqttern+)J ! ${ `" ``  ( ¤matchus > Ju; J ! `$ `rm4urn(fa,se; ` 0 ! }J ( 0 0 $p!Ttern`=$sen&:rrmparePkttgrn( pátt%rL, $opôkons,0¥ãvring+; ˆ0   `($resU|t= `reeßeadg(]cll¨$0attar., $ótryNg, $matkler,$$flags ;šŠ( $ $ af ) ! ,Re3u,ô) ! {   ( ! ret}r. balse:  $}   ` if ($Vlaçs¤=!PReG_ODFQGDßCAPPURE)    ""{ ) $`   ¢// Be}owe!aLl numeriC keys ehcgpt!0 "90 0 $$jï_nueebic_öanues =`asrAy_filter( " !!! 0!   $-a¾ci¥s,   "   #  !bnn,$kex) > is_int(t+ayé!|| $key ?==$0< $   & ( !! ! ARRAI^FÛMTEÒeREe_eY){ Ë`   à /.!if the ìEvöoVe2 arráY Ckunts¤Lesó dxan 2 (1o no!oamed orkups),!don'v #on|inue "  kF (ãOµ~T($ngWîUmerhc_valUeSi P`0)" " " "{ 0 ! 0(`$ òeturn $rEs}lt; " (}Š ) ) 4mñtkheÓ = %no]numårib_vah5eS?J a$ ` ,sGturnà$resuld+Š ( ` ` $ iv$)$f|!gs != PRGÇßSETZKRDGRi #€"  {   $& (  retuzn $vuselt; ! } $foze`cè($matches I{$&$maTbh)   " 0{ 4 $ ` "?/ Remore qìl fumDria oeys eXcepp 4 ! "  `" $no_nÕíeRicoöalter = q2rayOfiLteRh ( " $mit#h( ( ¢ 0 fn( kgy)0>`! as]inth$key! || $ie} 9=}"0, $! "` 2" ARAY{FML\ERSE_KEÙ-;* " 0!// If phu left0dr apreY coun4s ,lss \hqn 2 )so no nama% grotqs), dï,'t aontin5e $( $ 0if (cownt($n'_fõmericWta~eu÷)$< 3)J {   8 0 * bse!k !  & ` p } $ ` %match } $oo_nu}epi_wqìuec; 0 $}J ` ` !retusn $reswlt; ! %m 0!  .** (" * preg_qtow%$the gi6e| striNg or arrA} f óôsangs ( * pUblic static funcdion!oqm-gr¯eq(strhle $ata,¤q`rifg $na-e = 7§)z strmnç "0 {j$$   retqrn %74'!. $nom}`* '>'$& $d`ta . g+'; (" u $ /** % " : Make asurinw a valid`regulas dx`re{sinf ateebn` 0((*/ xublIc)st)4ib fenctÉ+n qòep@vePatteòn( "0 ((4 sôrIne|arriy dpaptebn< ` `(`?s4z)Vg 0 -o0tiozs = null, !  ( stRioG ( ¥sTrmîg"="! 0):!str-Ng|arraù & {   0 &array$< AR3cihedper::ap|lyMethodôïFalues([$qgt|erN,$nptëonñ, stryno)? 0" éf ( hs_nullˆ$arrey©)* ( { b `"``retuÒî $arb1x; ` !} ` @ i&"( )"c4rWstartS_wi4hh$xatvarn '#)) ` )$ { "$o`païns =`athsêull)$gñôions+"? ¤kpô+onc : 'si; ! 4 $pat|e3. =`'#'$' $pavter.p* '#' , $ortioNs»Š( " 0u* !   ( id ;StringHenpdò8:DetectUTF8 $rtRing)- û    ) /' usd upæ­4 ( return" pattårn". 'U'; & `   "} `  ! Fetu2, $pAttern; ` } ( '(*     * 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