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.

AssemblyAI

3.16.21

Caligrafik

3.15.21

Tangan

3.11.21

Halbstark Stuttgart

3.11.21

Boxicons

3.10.21

WorkOS

3.10.21

Heartcore

3.10.21

Attila Vaszka

3.10.21

Fleex

3.10.21

Sleep by Headspace

3.9.21

PIXEL SILO

3.9.21

Women Belong Everywhere

3.9.21

Set URL From Tab Change

3.5.21

Accessible Modal

3.4.21

Guillaume

3.3.21

Voiceflow

3.3.21

Retrium

3.1.21

Google Drive Direct Links for CMS Import

2.26.21

ShapesBySons

2.26.21

Crafted

2.25.21

Murmur

2.23.21

Refokus

2.23.21

ANDY WORKS

2.23.21

Enovix

2.22.21

FlutterFlow

2.22.21

Swipe Webflow Tabs

2.18.21

TRWM

2.17.21

Builder.ai

2.17.21

Button

2.16.21

Studioarte

2.15.21

Glimpse

2.15.21

Wannathis

2.15.21

Opsyne

2.11.21

OpenTent

2.11.21

Weav

2.11.21

SmugMug

2.9.21

Brink

2.9.21

Blott.io

2.8.21

Random Shuffle Sort CMS Items

2.5.21

Reinier Martin

2.5.21

The Homebug

2.5.21

ShareCalmly

2.4.21

Unit

2.3.21

Good + Ready

2.3.21

OAK'S LAB

2.2.21

Don Carlo

2.1.21

AngelList Venture

2.1.21

Grilli Type

1.25.21

Aurélia Durand

1.25.21

Granyon

1.25.21

THE THIRD STRIKE

1.25.21

Women of Commerce

1.22.21
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.