• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validating email address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validating email address


  • Subject: Re: Validating email address
  • From: has <email@hidden>
  • Date: Sun, 4 Dec 2005 23:36:16 +0000

Bernardo Höhl wrote:

>I just pasted you code on Script editor and tried it.
>
>It apparently works ok, but it fails to accept spaces in the email string.(quoted or not)
>
>Am I missing something?

Don't use the crappy pattern that I included for demonstration purposes; use the one that Randall indicated.

BTW, you'd be best to extract it straight from the source file rather than from the webpage, just to be sure you don't lose and/or gain any whitespace you shouldn't. If you're inserting it into a script as a string literal, make sure you backslash-escape everything correctly.

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Validating email address
      • From: Bernardo Hoehl <email@hidden>
References: 
 >Re: Validating email address (From: has <email@hidden>)
 >Re: Validating email address (From: Bernardo Höhl <email@hidden>)

  • Prev by Date: Re: Validating email address -- What are the allowed chars?
  • Next by Date: Re: Convert URL to text?
  • Previous by thread: Re: Validating email address
  • Next by thread: Re: Validating email address
  • Index(es):
    • Date
    • Thread