Got another question. I have this assignment I need to do and I thought I understood what to do, but turns out I don't. So far I have this:
([a-z0-9][-a-z0-9_\+\.]*[a-z0-9])@([a-z0-9][-a-z0-9\.]*[a-z0-9]\.(com|net|org)
Every time I run the php code I get an error (I have the php tags at the start and end of the code just didn't include them). What I need to know is how to display this correctly so I can actually test what I'm supposed to be testing. For reference, this is what I am actually supposed to do.
Design a regular expression pattern that accepts email address
"jsmith456@test.com", "mjones@study.net", and "jane.doe@example.org"
but does not accept "john.smith@php.test", "john.jones@php.invalid", and "alan.smithee@test".
Test it with a script.