I've got a function which almost works - it validates an email address format in the following form:
- Must have an @ symbol
- Must have some string after @ symbol.
- Must have a '.' followed by another string after that.
It doesn't work at the moment because I don't know how to correctly insert a variable that accepts any string that the user inputs - how can this be achieved?