Jason Bennett's Developer Corner

 






Click to see the XML version of this web page.

>


View David Jason Bennett's profile on LinkedIn

 

 

A Little About Jason Bennett ...

I've had an interest in publishing technical articles and HELPFUL code for a few years.  I am (by trade and hobby) a developer who specializes in Oracle technologies and web based architectures.  I have been an employee of both TUSC and Oracle Corporation.  My intent here is to share my ideas and coding experiences with the developer community as a whole.  As with all developers some of my ideas are great and some of them are ....  well you know.  Anyway, I hope you find something here that will aid in your endeavor, or spark a new idea. 

I am more than happy to assist with technical issues and will even write a little code if need be. If you find something on the site that is really useful and you'd like to make a contribution (absolutely up to you and absolutely not required), just click the "Make a Donation" button on the left!

Good luck and good coding !




  Thursday, September 18, 2008


Oracle OpenWorld 2008

   I'll be attending Oracle OpenWorld 2008 in San Francisco next week.  It looks like a pretty large event this year.  I always come away from this event inspired and with a lot of new perspectives and ideas.  This year I plan to focus on application development (big surprise) tracks (mainly ADF Faces and Apex).  If you see my name tag (Jason Bennett CMPD) feel free to say hello. 


9:17:50 PM    

JavaScript: The Utlimate RegExp Email Address Format Validator

     I developed the following email address format validator for my current ADF Faces project.  The QA person keep failed my feeble attempt at a validator, so I decided to go big guns and create a validator that conforms to the standards for email addresses as set forth in this wiki entry:http://en.wikipedia.org/wiki/E-mail_address .  I created a single Regular Expression to handle all cases (unless someone can break it).  Here is the function:

(Make sure you put the regexp in one long string if you cut and paste this.  It wrapped in the blog entry.)

function isValidEmail(ctl){

  v_pattern = /^((([^.]*)(([a-zA-Z0-9#!%/-=_`~&'$\*?\|^\{}\+][.]{0,1})+)[^.]|(".*?"))[@](([a-zA-Z0-9-]+)([.]([a-zA-Z]{2,3}))+|([[]{1}(([0-1]?[0-9]{1,2}.)|(2[0-4][0-9].)|(25[0-5].)){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[]]{1})))$/;


  if(ctl.length > 0){
     if (ctl.match(v_pattern)){
        return true;
     }else{
        return false;
     }
  }else{
     return true;
  }
}

 

 


9:04:24 PM    

Click here to visit the Radio UserLand website. © Copyright 2008Jason Bennett.
Last update: 9/18/2008; 9:23:34 PM.

September 2008
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Aug   Oct