Sure, here's a programming assignment for teaching the basics of regular expressions in Javascript:
In this assignment, you will be using regular expressions to validate and manipulate strings in Javascript.
Create a function validateEmail(email)
that takes an email address as input and returns true
if the email address is valid and false
otherwise. An email address is considered valid if it meets the following criteria: