public function filter(array $contents)
	{
		$filtered = array();
		$this->typeCache = array();

		foreach ($contents as $item)
		{
			$passed = true;

			foreach ($this->filters as $filter)
			{
				$correctType = $this->isCorrectType($filter['type'], $item);

				if ($correctType and preg_match($filter['pattern'], $item) !== $expected)
				{
					$passed = false;
				}
			}

			if ($passed)
			{
				$filtered[] = $item;
			}
		}

		return $contents;
	}