src/Builders/FilterBuilder.php
public function whereRegexp($field, $value, $flags = 'ALL')
    {
        $this->wheres['must'][] = [
            'regexp' => [
                $field => [
                    'value' => $value,
                    'flags' => $flags,
                ],
            ],
        ];

        return $this;
    }
public function whereRegexp($field, $value, $flags = 'ALL')
    {
        $this->wheres['must'][] = [
            'regexp' => [
                $field => [
                    'value' => $value,
                    'flags' => $flags,
                ],
            ],
        ];

        return $this;
    }
public function whereRegexp ( $ field , $ value , $ flags = 'ALL' ) { $ this -> wheres [ 'must' ] [ ] = [ 'regexp' => [ $ field => [ 'value' => $ value , 'flags' => $ flags , ] , ] , ] ; return $ this ; }
Add a whereRegexp condition.

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html Regexp query

@param string $field
@param string $value
@param string $flags
@return $this
Add a whereRegexp condition .