kernel/classes/ezsiteaccess.php
static function matchRegexp( &$text, $reg, $num )
    {
        $reg = str_replace( '/', "\\/", $reg );
        if ( preg_match( "/$reg/", $text, $regs ) && $num < count( $regs ) )
        {
            $text = str_replace( $regs[$num], '', $text );
            return $regs[$num];
        }
        return null;
    }
static function matchRegexp( &$text, $reg, $num )
    {
        $reg = str_replace( '/', "\\/", $reg );
        if ( preg_match( "/$reg/", $text, $regs ) && $num < count( $regs ) )
        {
            $text = str_replace( $regs[$num], '', $text );
            return $regs[$num];
        }
        return null;
    }
static function matchRegexp ( & $ text , $ reg , $ num ) { $ reg = str_replace ( '/' , "\\/" , $ reg ) ; if ( preg_match ( "/$reg/" , $ text , $ regs ) && $ num < count ( $ regs ) ) { $ text = str_replace ( $ regs [ $ num ] , '' , $ text ) ; return $ regs [ $ num ] ; } return null ; }
Match a regex expression

@since 4.4
@param string $text
@param string $reg
@param int $num
@return string|null
Match a regex expression