public function __construct($expr) { parent::__construct(sprintf('The format of the regular expression "%s" is invalid', $expr)); }