PHPackages                             born05/craft-matchinput - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. born05/craft-matchinput

ActiveCraft-plugin[Validation &amp; Sanitization](/categories/validation)

born05/craft-matchinput
=======================

Craft field type for text fields that match a regex pattern

3.0.0(2y ago)0112MITPHP

Since Apr 2Pushed 2y agoCompare

[ Source](https://github.com/born05/craft-matchinput)[ Packagist](https://packagist.org/packages/born05/craft-matchinput)[ RSS](/packages/born05-craft-matchinput/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Match Input plugin for Craft CMS 4.x and 5.x
============================================

[](#match-input-plugin-for-craft-cms-4x-and-5x)

Craft field type for text fields that match a regex pattern.

Installation
------------

[](#installation)

To install Match Input, follow these steps:

1. Install with Composer via `composer require born05/craft-matchinput` from your project directory
2. Install plugin in the Craft Control Panel under Settings &gt; Plugins

or

1. Install via the Plugin Store

Match Input works on Craft 4.x and Craft 5.x.

Match Input Overview
--------------------

[](#match-input-overview)

A *Match Input* field is a *Plain Text* field with the addition of a regex pattern that the field must match to be valid.

Using Match Input
-----------------

[](#using-match-input)

When you create the field, you specify the `Input Mask`. This is the [PCRE Pattern](http://php.net/manual/en/pcre.pattern.php) which the input is required to match. You also specify an `Error Message` to display when the field does not match the pattern.

If you need to translate the `Error Message` (for a multi-language control panel), those translations will be in the `site` translation category.

Sample Input Masks
------------------

[](#sample-input-masks)

- `https://` - not a valid pattern (no delimiters)
- `/https:\/\//` - valid pattern, will match string with `https://` in it anywhere
- `#https://#` - valid pattern, will match string with `https://` in it anywhere (sometimes / isn't the best delimiter)
- `#^https://#` - will match string that begins with `https://`
- `/^\d{5}(-\d{4})?$/` - will match 5 digits, optionally followed by `-` and 4 digits (uses ^ and $ to match the entire string)

Acknowledgements
----------------

[](#acknowledgements)

Forked from [Marion Newlevant's Match Input](https://github.com/marionnewlevant/craft-match_input) plugin.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

822d ago

Major Versions

v2.x-dev → 3.0.02024-04-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/b297cd8c527a8620debf22136350e082614eecc7b4212d51b622c2d89595936f?d=identicon)[born05](/maintainers/born05)

---

Top Contributors

[![marionnewlevant](https://avatars.githubusercontent.com/u/695477?v=4)](https://github.com/marionnewlevant "marionnewlevant (13 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (2 commits)")[![MakeilaLundy](https://avatars.githubusercontent.com/u/19892516?v=4)](https://github.com/MakeilaLundy "MakeilaLundy (2 commits)")

---

Tags

Craftcraftcmscraft-pluginmatch input

### Embed Badge

![Health badge](/badges/born05-craft-matchinput/health.svg)

```
[![Health](https://phpackages.com/badges/born05-craft-matchinput/health.svg)](https://phpackages.com/packages/born05-craft-matchinput)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)[verbb/events

A full-featured plugin for event management and ticketing.

2311.9k](/packages/verbb-events)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
