# contact-forms/2.3.5/PFBC/Validation/AlphaNumeric.php

Contact Forms by Cimatti, version 2.3.5. 16 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.3.5/code/PFBC/Validation/AlphaNumeric.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.3.5/raw/PFBC/Validation/AlphaNumeric.php
- Modified: 2026-04-08T09:49:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/2.3.5/code/PFBC/Validation/AlphaNumeric.php#L10-L20`.

```php
<?php
/**
 * PFBC (PHP Form Builder Class) - Third-party library
 * @package PFBC
 */

// phpcs:disable WordPress.Security.EscapeOutput, WordPress.NamingConventions.PrefixAllGlobals, PluginCheck.CodeAnalysis.Heredoc -- Third-party library

class Validation_AlphaNumeric extends Validation_RegExp {
	protected $message = "Error: %element% must be alphanumeric (contain only numbers, letters, underscores, and/or hyphens).";

	public function __construct($message = "") {
		parent::__construct("/^[a-zA-Z0-9_-]+$/", $message);
	}
}

```
