public function getResourcesByPropertyRegEx(string $property, string $regEx,
                                                string $flags = 'i',
                                                bool $checkIfExist = true): array {
        $query = new Query();
        $query->addParameter(new MatchesRegEx($property, $regEx, $flags));
        return $this->getResourcesByQuery($query, '?res', $checkIfExist);
    }