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.

ART+TECH Report

1.26.24

Hello Robo

1.26.24

Supershine

1.26.24

Multi App

1.26.24

Smootify

1.25.24

Robin AI

1.25.24

Jeffrey Martin

1.25.24

Holland

1.25.24

Love The Work More

1.25.24

HTML <dialog> Modal

1.22.24

The New Dialog HTML Element Changes Modals Forever

1.21.24

Neither/Nor

1.19.24

Framer: 2023 Year in Review

1.18.24

Mindbloom

1.17.24

E&W Design Studio

1.17.24

Dauw

1.17.24

Hydra

1.17.24

Resliders

1.17.24

Museum Studio

1.17.24

Caserne

1.17.24

Baked Graphics

1.17.24

Darina CG Artist

1.16.24

Custom Tag Form Spam Prevention

1.15.24

Produlis

1.15.24

TinySync - Airtable → Webflow CMS Sync Via CLI

1.15.24

Toggle Dark Mode with CSS :has()

1.14.24

QCRN Studio

1.12.24

Dann Petty

1.11.24

CMAND_

1.11.24

Due

1.11.24

Alice AI Assistant

1.11.24

Cache

1.10.24

Small Medium Large

1.9.24

rawpixel

1.9.24

Collletttivo

FREE
1.9.24

Webflow Webhook Creator Tool

1.9.24

Micah Allen

1.8.24

Optibase

1.8.24

Two Hands

1.8.24

Remote Supply

$40+
1.8.24

Premium Asset Library Template

$66
1.8.24

Algorithm Driven Design

1.8.24

Inspotype

1.5.24

Lever & Webflow Integration

1.5.24

Derek J

1.5.24

Design Systems Database

1.5.24

Heroicons

Free
1.5.24

Use AI to Streamline Airtable Automations

1.5.24

Prompt engineering

1.5.24

Make Do

1.5.24

Exactly.ai

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