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.

Martin Briceno

12.12.22

HNDRX

12.12.22

Sania Saleh

12.12.22

Chartbeat

12.11.22

Matter.js

12.11.22

ChatGPT and Webflow

12.10.22

Capsule

12.10.22

Mona Sans & Hubot Sans

12.9.22

Astroic

$15/mo
12.9.22

Flowmonk

12.9.22

Google Sheets

12.9.22

Shopify

12.9.22

Interactive CMS Map w/ Mapbox

12.8.22

MOONBASE®

12.7.22

Tolstoy

12.7.22

Humankind

12.7.22

Ohmie Go

12.6.22

Social House

12.6.22

1000 Inspiring Websites

12.6.22

Morpher for Framer

12.5.22

Sage Mountainside

12.5.22

Ayda Oz - Product Designer

12.5.22

Summarize Airtable Text with OpenAI

12.3.22

Locale

12.3.22

Brella Insurance

12.3.22

Bonus™

12.3.22

Pet Hotel

12.3.22

Aeropage Tools

12.3.22

OpenAI

12.3.22

Concept Ventures

12.2.22

Carbon

12.1.22

Puzzl

12.1.22

Terraset

12.1.22

Nathan Smith

12.1.22

Partytrick

12.1.22

Commento

12.1.22

Notion

12.1.22

Whimsical

12.1.22

Gleap

12.1.22

The Webflow Project System 2.0

$12
12.1.22

Monto

12.1.22

Circa

12.1.22

Pirsch Analytics

12.1.22

Plausible Analytics

12.1.22

Sygnal

12.1.22

Iframely

12.1.22

Splitbee

12.1.22

HTML Tables

12.1.22

Hemingway Editor

12.1.22

Finsweet Cookie Consent

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