Exakat\Analyzer\Type\Pcre::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // regex like $....$is
        $this->atomIs('String')->regexIs('code', '([\'\\"])\\$[^\\$].*?\\$[imsxeADSUXJu]*[\'\\"]');
        $this->prepareQuery();
        // regex like #....#is
        $this->atomIs('String')->regexIs('code', '([\'\\"])#[^#].*?#[imsxeADSUXJu]*[\'\\"]');
        $this->prepareQuery();
        // regex like ~....~is
        $this->atomIs('String')->regexIs('code', '([\'\\"])~[^~].*?~[imsxeADSUXJu]*[\'\\"]');
        $this->prepareQuery();
        // regex like /..../
        $this->atomIs('String')->regexIs('code', '([\'\\"])\\\\/[^\\\\/*][^\\\\/]*?\\\\/[imsxeADSUXJu]*[\'\\"]');
        $this->prepareQuery();
        // regex like {....}
        $this->atomIs('String')->regexIs('code', '([\'\\"])\\\\{.+?\\\\}[imsxeADSUXJu]*[\'\\"]');
        $this->prepareQuery();
    }