Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top