Validate HTML Inputs w/ Pattern Attribute

Validate HTML Inputs w/ Pattern Attribute

Add a simple pattern and title attribute on any HTML input to only allow a specific value or part of a value to be accepted. This can be used to validate emails from a specific domain like “@example.com” or only accept links that include a specific string. The title attribute allows a custom message appear in a browser default tooltip if the email entered isn’t valid.

Within the pattern attribute we use regex to determine what value match is approved. You can use regex to match just about anything, so this general approach can also be used to match other specific values in any input.

Industries

Creators

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
5.4.23

Similar items

Advertise with No-Code Supply Co.

View item
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Water Information Certification System DAO

7.11.23

Wacomet

7.11.23

Framestack

7.10.23

EightyOne

7.10.23

Dmirty Bielohurov

7.10.23

United Playgrounds

7.6.23

Riot Ventures

7.6.23

Assembly

7.5.23

I Killed a Cactus

7.5.23

Orval

7.4.23

Flowman

7.4.23

Thomas Quigley's Portfolio

6.30.23

Filippo Ruffini

6.30.23

OMNIUS

6.30.23

GoodFake

6.30.23

Humblytics

6.28.23

Figma Variables for Color Systems

6.27.23

Citrona Studio

6.23.23

Gladia

6.23.23

Cubo

$79
6.22.23

Townhouses.nz

6.21.23

MemberScripts by Memberstack

6.20.23

The Ultimate Webflow Toolkit by BRIX Agency

6.19.23

Roboto Entertainment

6.19.23

Ledger

6.16.23

Arthur

6.16.23

Bucket

6.15.23

Unknown®

6.15.23

DocuSign AI Labs

6.15.23

Dimensions

6.14.23

Skip to Main Nav Link

6.14.23

Swiftype

6.13.23

Rotor

6.13.23

Birdie®

6.13.23

Bandit App

6.12.23

Bourii

6.9.23

Qubex

6.8.23

Pattern Club

6.8.23

Paytable

6.8.23

Briefbox

6.8.23

Glyphy

6.8.23

Framer Form Component

6.8.23

Hype

6.7.23

Jordan Hughes

6.6.23

Nutrisense

6.5.23

Pendulum

6.5.23

Flowmonk

6.5.23

The Thirty7

5.30.23

Roswell

5.30.23

Pani Source

5.25.23

Creating a CMS based map with Webflow + Mapbox

5.25.23

LottieFiles for Figma

5.23.23
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.