public function validatePattern($value)
	{
		if (!isset($this->attr["pattern"])) return true;

		$pattern = trim($this->attr["pattern"], "/");

		if (!preg_match("/{$pattern}/", $value)) {
			$this->errors[] = "\"{$this->label}\" must match the specified pattern.";
			return false;
		}

		return true;
	}