Started coding: December 2018.
A JavaScript project where we use regular expressions for validation in a form.
Input fields:
-
Name: max 10 characters upper/lowercases allowed.
-
Zip code: Dutch zipcode which is always in this format: 4444XX
-
Email: letters upper/lower, numbers, underscores, dashes, dots allowed before the @. Then the same characters are allowed as before the @. The last part for the .com/.net/.gmail/etc, can be up to max 5 letters. Upper/lower case.
-
Phone: 06 1234 5678/ (06)1234 5678/ 06.1234 5678/ 0612345678.
For more information see:
https://github.com/PhilipAndes/JavaScript-Error-Handling-Regular-Expressions