reset(); if (! empty($options[0]) && ! preg_match($options[0], $buffer)) { $this->success = false; $this->error = sprintf( __('Validation failed for the input string %s.'), htmlspecialchars($buffer) ); } return $buffer; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin */ public static function getName(): string { return 'Regex Validation'; } }