AS3 Email Validator using regexp

Posted in Software Development on October 17th, 2008 by Russ Tarleton

Quick and dirty way to validate email addresses:
http://www.stimuli.com.br/trane/2007/sep/13/email-validation-actionscript-3/

Here’s my short version:

public function isValidEmail(pEmail : String) : Boolean
{

var emailRegexp : RegExp = /^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
return Boolean(pEmail.match(emailRegexp));

 

}

Motorcycle Safety Class

Posted in Updates on October 17th, 2008 by Russ Tarleton

I think the best way I’m going to be able to memorize these acronyms for the written test tomorrow is to write them down myself. These are the important ones so far:

T-CLOCS (Pre-ride Inspection Procedure)

  1. Tires
  2. Controls
  3. Lights
  4. Oil
  5. Chassis
  6. Stand

FINE-C (Startup Procedure)

  1. Fuel
  2. Ignition
  3. Neutral
  4. Engine
  5. Choke (on cold day) and Clutch

SEE (Riding Checklist)

  1. Search
  2. Evaluate
  3. Execute