HW: Regular Expressions- Individual Homework
Description
Using the e-commerce web site you created.
a)
Create and implement a php function that uses regular expressions to check the following:
The seller name:
- Must be equal or less than 16 characters.
- Can only use alphanumeric charaters.
- Cannot have leading numeric character.
The product name:
- Must be equal or less than 200 characters.
- Cannot contain characters such as ~!@#$%^&*()`"
- Cannot have leading numeric character.
b)
Create a test driver php function to show the function you implemented in a is correct.
c)
Update your e-commerce web site from last homework to use the function (from a).
Grading
- Send the code (from a), the test driver link (from b), and the updated website link (from c) to coolprofsinn@gmail.com for grading by end of Wed.