Quality Resources | Regular Expression Info | |
---|---|---|
Javascript | [Regular expressions - JavaScript | MDN](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions) |
Php | PCRE - Manual - PHP | PCRE Pattern Reference |
Live Editors | Php Regex Editor | JS Regex Editor |
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)