public function add($attrName, $regexp)
	{
		$attrName = AttributeName::normalize($attrName);

		$k = serialize([$attrName, $regexp]);
		$this->items[$k] = new AttributePreprocessor($regexp);

		return $this->items[$k];
	}
public function add($attrName, $regexp)
	{
		$attrName = AttributeName::normalize($attrName);

		$k = serialize([$attrName, $regexp]);
		$this->items[$k] = new AttributePreprocessor($regexp);

		return $this->items[$k];
	}
public function add ( $ attrName , $ regexp ) { $ attrName = AttributeName :: normalize ( $ attrName ) ; $ k = serialize ( [ $ attrName , $ regexp ] ) ; $ this -> items [ $ k ] = new AttributePreprocessor ( $ regexp ) ; return $ this -> items [ $ k ] ; }
Add an attribute preprocessor

@param  string $attrName Original name
@param  string $regexp   Preprocessor's regexp
@return AttributePreprocessor
Add an attribute preprocessor