Yeah, you're right, that one is a little too simple.
Another one I've used is this:
--
// vars
var checkStr:String =
._-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;
var isValid:Boolean;
var inputTxt:TextInput;
var
This is much better, but not perfect yet :) It still lets pass strings
like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc.
I think that validating carefully everything what comes from the user
is an essential thing, and we have to don't allow breaking programs
by wrong inputs. It
there is a problem with the behavior described below:
The above script check for a @ followed by the last instance of
This turns e-mails from some countries (like [EMAIL PROTECTED])
invalid. For example, I had to fix the e-mail validation in the code of some
CMS to develop some sites for
I have attached a class which - hopefully - takes care of each
possible issue :)
Attila___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
uhh, attachments are not allowed here?
class Validate {
// characters allowed in e-mail addresses, not including the separators (@
and .)
public static var EMAIL_CHARS: String = abcdefghijklmnopqrstuvwxyz_-;
// test a string for containing allowed characters only
public static
http://muzakdeezign.com/flashcoders/?q=email%20validation
Muzak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf
Muzak, thank you for the handy google search!
Another cool thing you done!
Kurt
At 04:49 PM 11/19/06, you wrote:
http://muzakdeezign.com/flashcoders/?q=email%20validation
Muzak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Well, this is too simple, there are too many invalid strings which are
considered as valid by this script. I think if you validate the input,
then do it correctly or don't validate at all :) An incomplete
validation makes you feel that your data is valid and secure, however
it can lead to
I am looking for an AS@ class that validates a string to see if it is a
properly formatted email address.
Does anyone have one handy? Or have you seen one around? I found one at :
http://www.bokelberg.de/actionscript/checkEmail.html
However it seems to think an email address with less that 4
However it seems to think an email address with less that 4
characters before the @' is not valid (when it is).
So just modify it to allow less than 4 characters before the @.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options
I found this when I was adding stuff to actionscriptclasses.com :
http://www.robgonda.com/blog/index.cfm/2006/3/1/actionscript-regular-expression-class
the download has an email validation example.
On 11/17/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
However it seems to think an
11 matches
Mail list logo