I innovator_ New Member Jul 7, 2010 #1 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}$
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}$
P Pommie Well-Known Member Most Helpful Member Jul 7, 2010 #2 What do you have so far? I'll get you started with a clue, the first could be used by spammers. Mike.
What do you have so far? I'll get you started with a clue, the first could be used by spammers. Mike.
I innovator_ New Member Jul 8, 2010 #3 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
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
I innovator_ New Member Jul 8, 2010 #6 500 bucks to answer it by today... whats an RE reference... where do i find it??
P Pommie Well-Known Member Most Helpful Member Jul 8, 2010 #8 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.
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.
B BrownOut Banned Jul 8, 2010 #9 Pommie said: To work out the second, google regular expressions. Mike. Click to expand... Right, my bad. Don't know where I got Real Expressions from. Late, tired, that's my excuse.
Pommie said: To work out the second, google regular expressions. Mike. Click to expand... Right, my bad. Don't know where I got Real Expressions from. Late, tired, that's my excuse.