src/PcreExtension.php
protected function assertNoEval($pattern)
    {
        $pos = strrpos($pattern, $pattern[0]);
        $modifiers = substr($pattern, $pos + 1);
        
        if (strpos($modifiers, 'e') !== false) {
            throw new \Twig_Error_Runtime("Using the eval modifier for regular expressions is not allowed");
        }
    }
protected function assertNoEval($pattern)
    {
        $pos = strrpos($pattern, $pattern[0]);
        $modifiers = substr($pattern, $pos + 1);
        
        if (strpos($modifiers, 'e') !== false) {
            throw new \Twig_Error_Runtime("Using the eval modifier for regular expressions is not allowed");
        }
    }
protected function assertNoEval ( $ pattern ) { $ pos = strrpos ( $ pattern , $ pattern [ 0 ] ) ; $ modifiers = substr ( $ pattern , $ pos + 1 ) ; if ( strpos ( $ modifiers , 'e' ) !== false ) { throw new \ Twig_Error_Runtime ( "Using the eval modifier for regular expressions is not allowed" ) ; } }
Check that the regex doesn't use the eval modifier

@param string $pattern
@throws \LogicException
Check that the regex doesn t use the eval modifier