public function __construct($pattern, $charset = 'UTF-8') { $this->setPattern($pattern); $this->setCharset($charset); }