Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Hiding mail addresses in mailto: with JavaScript

by Chady (Priest)
on Oct 24, 2003 at 18:47 UTC ( #301923=note: print w/ replies, xml ) Need Help??


in reply to Hiding mail addresses in mailto: with JavaScript

Also, you might want to consider the /i in your regex to avoid typing the case combinations: /[hH][rR][eE][fF]/ is better done /href/i -- at least it's better for your fingers ;)


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/


Comment on Re: Hiding mail addresses in mailto: with JavaScript
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Hiding mail addresses in mailto: with JavaScript
by projekt21 (Friar) on Oct 24, 2003 at 19:24 UTC

    Thanks for that hint and for caring about my fingers ;-) but I thought that /[hH][rR][eE][fF]/ was cheaper than /href/i. Am I wrong on that?

    alex pleiner <alex@zeitform.de>
    zeitform Internet Dienste

      Your original regex may be cheaper than the one that uses the i option, but the difference is so miniscule as to not matter. At that point, clarity is more important than speed.

      --t. alex
      Life is short: get busy!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://301923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-08 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls