src/Parser/ValueParser.php
private function fetchStringMatches($value, $regex, $symbol)
    {
        if (!preg_match('/'.$regex.'/', $value, $matches)) {
            throw new ParseException(
                sprintf('Missing end %s quote', $symbol),
                $value,
                $this->parser->line_num
            );
        }

        return $matches;
    }
private function fetchStringMatches($value, $regex, $symbol)
    {
        if (!preg_match('/'.$regex.'/', $value, $matches)) {
            throw new ParseException(
                sprintf('Missing end %s quote', $symbol),
                $value,
                $this->parser->line_num
            );
        }

        return $matches;
    }
Gets the regex matches in the string

@param string $regex    The regex to use
@param string $value    The value to parse
@param string $symbol   The symbol we're parsing for

@throws \M1\Env\Exception\ParseException If the string has a missing end quote

@return string[] The matches based on the regex and the value