Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Strip email address (2003)

    Does anyone have a function that will strip down an email address, stored in a hyperlink field, to a text based version? That is, sometimes it's used as a link but other times I just want the 'actual' email address as text, e.g. 'andy@aol.com', without all the mailto: and hashes #, etc. Thanks, Andy.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Strip email address (2003)

    Let's say that your hyperlink field is named hyp. The following expression will extract the e-mail address from the field:
    <code>
    Mid([hyp],InStr([hyp],"mailto:")+7,InStr(InStr([hyp],"mailto:")+7,[hyp],"#")-InStr([hyp],"mailto:")-7)
    </code>
    <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Strip email address (2003)

    Thank you.. once again. Andy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •