Filters the array items by the given key is not matches to given regexp.

/**
 * Filters the array items by the given key is not matches to given regexp.
 *
 * @param string $key   Key of the array for comparison.
 * @param mixed  $value Value used for comparison.
 *
 * @return self Returns instance of The Arrays class.
 */
public function whereNotRegexp(string $key, $value): self

Examples

    $result = Arrays::create([
                    0 => ['message' => '42'],
                    1 => ['message' => '21'],
                    2 => ['message' => 'Hello'],
                    3 => ['message' => 'Hello 42'],
                ])->whereNotRegexp('message', '^\d+$')
                  ->toArray();
);

Getting Started

Methods