<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 20, 2013 at 12:45 PM, Jugurtha Hadjar <span dir="ltr"><<a href="mailto:jugurtha.hadjar@gmail.com" target="_blank">jugurtha.hadjar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Chris, Vlastimil, great insights gentlemen! Thanks<div class="im"><br>
<br>
Chris Angelico wrote:<br>
<br>
>Instead of matching the ones that are the same as their uppercase<br>
>version, why not instead keep the ones that are the same as their<br>
>lowercase?<br>
<br>
<br></div>
That's why I started off doing, and then lost track a bit. It didn't cross my mind that '.' and '@' are uncased characters and I'm a bit ashamed of not thinking about that before running the code<br>

<br>
(i.e:<br>
<br>
'.'.lower() gives False<br>
'.'.upper() gives False<br>
<br>
And the same for '@'. So unless you specifically "spare" them, they'll be whacked if you exclude upper case characters, or only include lower case characters).<div class="im"><br>
<br>
>Ah, now you're getting into the realm of CAPTCHAs. I'll be quite frank<br>
>with you: Don't bother. Many MANY experts are already looking into it<br>
<br></div>
Yeah.. I thought of writing "My e-mail is my first name, dot, my last name at gmail dot com".<br>
<br>
Some "riddling" can be viable to a certain extent. Or if your e-mail is ba86rockstar@gm.bu<br>
<br>
ba, then 86, then rock, then star, at gm dot bu.<br>
<br>
Or the e-mail can be generated dynamically calling a script that assembles pieces and displays it. This way, it can escape scrapers and all and will make it hard to manually harvest e-mails.. Which brings us to your next point about e-mail harvesters and that kind of labor (which is astounding !).<div class="im">
<br>
<br>
<br>
<br>
<br>
> email = 'REMOVEMEjohn.doSPAMeSPAM@<u></u>REMOVEMEhotmail.com'<br>
> ''.join(filter(lambda x: x==x.lower(),email))<br>
>'<a href="mailto:john.doe@hotmail.com" target="_blank">john.doe@hotmail.com</a>'<br>
<br></div>
Nice ! As well as Vlastimil's suggestions. The things I found on the net weren't that well written. There were *way* too many lines that made me think "No way. There's gotta be a better way".<div class="">
<div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
~Jugurtha Hadjar,<br>
-- <br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra">Last year I was playing around with django forms and wrote some code that required the user to add some numbers before the form was submitted. Here is the article: <a href="http://www.joelgoldstick.com/blog/2012/sep/30/django-forms/">http://www.joelgoldstick.com/blog/2012/sep/30/django-forms/</a><br>
<br></div><div class="gmail_extra">This isn't exactly what you are asking, but it does give you a change to let someone send you mail without giving out your email address.  <br><br></div><div class="gmail_extra">With the onslaught of social media stuff, it feels like sites like linked in and anything that uses gmail want to get you to give away your email address, and perhaps give access to everyone in your lists. So, I'm suggesting its really a loosing battle.<br clear="all">
</div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div></div>