A CraftCMS field that validates inputs against a regex
This plugin requires Craft CMS 4.4.0 or later and PHP 8.0.2 or later, or Craft CMS 5.0 and PHP 8.2 or later.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Regex Field”. Then press “Install”.
Open your terminal and run the following commands:
# go to the project directory
cd /path/to/my-project.test
# tell Composer to load the plugin
composer require imarc/craft-regex-field
# tell Craft to install the plugin
./craft plugin/install regex-field
Create a new field and choose "Regex" as the field type.
Enter a regex pattern that all input in the field will be validated against.