riddle

Status
Not open for further replies.

innovator_

New Member
Explain the following 2 regular expressions. Where would they be used? What potential problems do you foresee in using them?
1. ^[a-zA-Z0-9]+([_.-]?[a-zA-Z0-9]+)?@[a-zA-Z0-9]+([_-]?[a-zA-Z0-9]+)*([.]{1})[a-zA-Z0-9]+([.]?[a-zA-Z0-9]+)*$

2. ^[^<>&~\s^%A-Za-z\\][^A-Za-z%^\\<>]{1,25}$
 
What do you have so far?

I'll get you started with a clue, the first could be used by spammers.

Mike.
 
well i dont really know...my friend aske me this....it was a bet that i wouldnt get...and i hate to admit i dont have a clue...
1
 
The first one is testing for an email address. To work out the second, google regular expressions.

It is worded a bit too much like a school question to be a bet.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…