code: public function setPattern($pattern){
  		$this->setTag('pattern',$pattern);
  		if($this->getValidator()){
  			$this->getValidator()->setOption('pattern',$pattern);
  		}
  	}
docs: Set html tag pattern
  
  @param string $pattern - value of tag pattern (regular expression)