lib/Globby/Builder/Regex.php
public function createFromTokens(array $tokens)
    {
        $buffer = $this->delimiter . '^';

        foreach ($tokens as $token) {
            $buffer .= $this->translateToken($token);
        }

        $buffer .= '$' . $this->delimiter . $this->modifiers;

        return $buffer;
    }
public function createFromTokens(array $tokens)
    {
        $buffer = $this->delimiter . '^';

        foreach ($tokens as $token) {
            $buffer .= $this->translateToken($token);
        }

        $buffer .= '$' . $this->delimiter . $this->modifiers;

        return $buffer;
    }
public function createFromTokens ( array $ tokens ) { $ buffer = $ this -> delimiter . '^' ; foreach ( $ tokens as $ token ) { $ buffer .= $ this -> translateToken ( $ token ) ; } $ buffer .= '$' . $ this -> delimiter . $ this -> modifiers ; return $ buffer ; }
Creates a regular expression based on the supplied tokens. This return expression will be wrapped by the
value of the 'delimiter' property, and the modifiers contained within the 'modifiers' property will be appended
to the end.

@param array $tokens
@return string
Creates a regular expression based on the supplied tokens . This return expression will be wrapped by the value of the delimiter property and the modifiers contained within the modifiers property will be appended to the end .