protected function createRegex()
    {
        // Load list from driver
        if (empty($list = $this->getDriver()->getList())) {
            return null;
        }

        return sprintf('/\b(%s)\b/i', implode('|', array_map(function ($value) {
            if (isset($value[0]) && $value[0] == '[') {
                return $value;
            }
            else if (preg_match("/\r\n|\r|\n/", $value)) {
                return preg_replace("/\r\n|\r|\n/", "|", $value);
            }

            return preg_quote($value);

        }, $list)));
    }
protected function createRegex()
    {
        // Load list from driver
        if (empty($list = $this->getDriver()->getList())) {
            return null;
        }

        return sprintf('/\b(%s)\b/i', implode('|', array_map(function ($value) {
            if (isset($value[0]) && $value[0] == '[') {
                return $value;
            }
            else if (preg_match("/\r\n|\r|\n/", $value)) {
                return preg_replace("/\r\n|\r|\n/", "|", $value);
            }

            return preg_quote($value);

        }, $list)));
    }
protected function createRegex ( ) { // Load list from driver if ( empty ( $ list = $ this -> getDriver ( ) -> getList ( ) ) ) { return null ; } return sprintf ( '/\b(%s)\b/i' , implode ( '|' , array_map ( function ( $ value ) { if ( isset ( $ value [ 0 ] ) && $ value [ 0 ] == '[' ) { return $ value ; } else if ( preg_match ( "/\r\n|\r|\n/" , $ value ) ) { return preg_replace ( "/\r\n|\r|\n/" , "|" , $ value ) ; } return preg_quote ( $ value ) ; } , $ list ) ) ) ; }
Create blacklist regex from driver data.

@return string
Create blacklist regex from driver data .