Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Validating email address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validating email address



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

References: 
 >Re: Validating email address (From: has <email@hidden>)
 >Re: Validating email address (From: Bernardo Höhl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.