I need to allow the apostrophe ( ' ) in the email address and need to write 
RegExp for this case

e.g., pavan.O'[email protected]


public class CustomEmailValidator extends EmailValidator

{

override protected function doValidation(value:Object):Array

       {

       // var pattern:RegExp = ?????

       // value = value.replace(/\'/g, '');

          value = value.replace(pattern,'');

          var results:Array =  super.doValidation(value);

               results.push(new ValidationResult(

                   true, null, "invalidChar",

                   this.invalidCharError));

          return results;

       }

}

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/flex_india/-/2h7IPmnwx3QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to