DEV Community

Cover image for Clean Code Studio Software Resources (Regex)
Clean Code Studio
Clean Code Studio

Posted on Edited on

Clean Code Studio Software Resources (Regex)

Twitter Follow


Email pattern /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/
Phone pattern /^((+\d{1,3}(-
Url pattern /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#()?&//=]*)/
Alphabetical characters only pattern /^[a-zA-Z]*$/
Alphabetical and numeric characters only pattern /^[a-zA-Z0-9]*$/
Alphabetical, numeric, dashes, and underscore characters only pattern /^[a-zA-Z0-9-_]+$/
IPv4 or IPv6 pattern /^(25[0-5]
IPv4 pattern /^(25[0-5]
IPv6 pattern /^((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4}))*::((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4}))*


Did you know I have a newsletter? 📬

If you want to get notified when I publish new blog posts or make major project announcements, head over to https://cleancodestudio.paperform.co/

Top comments (1)

Collapse
 
cleancodestudio profile image
Clean Code Studio