LMongo\Query\Builder::whereRegex PHP Method

whereRegex() public method

Add an "$regex JavaScript operation" clause to logical operation.
public whereRegex ( string $column, mixed $value ) : LMongo\Query\Builder
$column string
$value mixed
return LMongo\Query\Builder
    public function whereRegex($column, $value)
    {
        if (!$value instanceof MongoRegex) {
            $value = new MongoRegex($value);
        }
        return $this->where($column, $value, 'first');
    }
Builder