This content originally appeared on DEV Community and was authored by Clean Code Studio
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/
This content originally appeared on DEV Community and was authored by Clean Code Studio
Clean Code Studio | Sciencx (2021-07-28T04:46:39+00:00) Clean Code Studio Software Resources (Regex). Retrieved from https://www.scien.cx/2021/07/28/clean-code-studio-software-resources-regex/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.