Validate an email address

Hello
I am using this to validate email addresses and it does not
seem to work:
} else if (!email_txt.length ||
email_txt.indexOf("@") == -1 ||
email_txt.indexOf(".") == -1) {
status_txt.text = "Invalid Email.";
I would, in any case, prefer to use the following server
script for validation purposes:
<%
'Email
re.Pattern = "^\w+@\w+\.\w+"
If Not re.Test(email) Then
errorArray(1) = "red"
ErrorMsg = ErrorMsg &
"<center>Please type in a valid email
address</center>"
end if
%>
If I use this server script, how do I begin to show it in my
movie, please? What Action Script do I use to 'pull it in' from the
server and show it?
Many thanks
Steve

Here's an email validation class I use:
* EmailValidator<br>
* (c) 2006 blurredistinction, LLC<br>
* www.blurredistinction.com
* <p>
* by Dave Mennenoh<br>
* [email protected]
* <p>
* Allows email addresses to be easily checked for validity
using current
verification rules.
* <p>
* Usage: var emv:EmailValidator = new
EmailValidator();<br>
* var valid = emv.validate("[email protected]");
class com.blurredistinction.EmailValidator {
//ranges of valid ASCII values for email addresses
private var validASCII:Array = [[43, 43], [45, 46], [48,
57], [61, 61],
[65, 90], [94, 95], [97, 123], [125, 126]];
function EmailValidator () {}
* Checks an email address for validity.
* @param email Email string to be checked for validity
* @return Boolean - True if valid
public function validate (email:String):Boolean {
//split email into local and domain portions
var localDom:Array = email.split ("@");
//there can be only one @ sign - and there has to be one
//and there must be something before the @
if ((localDom.length != 2) || (localDom[0].length < 1)) {
return false;
//local portion can't start or end with a .
if ((localDom[0].charAt(0) == ".") || (localDom[0].charAt
(localDom[0].length - 1) == ".")) {
return false;
//split the domain portion into domain name and extension
var domExtension:Array = localDom[1].split (".");
//domain must contain at least one .
if(domExtension.length < 2){
return false;
//domain can't start with a .
if(domExtension[0].length == 0){
return false;
//there can be multiple .'s in the domain portion so use the
last item in
the array
//extension length must be between 2 and 4 characters
if (domExtension[domExtension.length - 1].length < 2 ||
domExtension[domExtension.length - 1].length > 4) {
return false;
//finally check the local portion & domain for invalid
chars
if ((!checkString (localDom[0])) || (!checkString
(localDom[1]))) {
return false;
return true;
//------------------------ PRIVATE
* Checks each character in the string to see if it's in the
range of valid
ascii
* @param theString String to be validated
* @return True if each character is in a valid range
private function checkString (theString:String):Boolean {
var sl = theString.length;
var ind:Number;
for (ind = 0; ind < sl; ind++) {
if (!isValidASCII (theString.charCodeAt (ind))) {
return false;
return true;
* See if the input character falls in the valid range of
valid ascii chars
* @param theChar Single character passed in from
checkString()
* @return True if individual char is in a valid range
private function isValidASCII (theChar:Number):Boolean {
var ind:Number;
for (ind = 0; ind < validASCII.length; ind++) {
if ((theChar >= validASCII[ind][0]) && (theChar
<= validASCII[ind][1])) {
return true;
return false;
HTH
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • How to Validate Multiple email address in spry?

    How to validate multiple email address in spry framework?
    Spry validate text field can validate one email address only,
    if I the text field is for multiple emails, how can I validate
    it?

    Hello Jackson,
    The Spry Textfield was designed to work with the normal work
    flows that people currently use in most of the forms on the web. We
    tried to prevent any email injection method in the forms therefore
    the validation was designed to stop any multiple email insertion.
    In case you want to insert multiple emails you'll have to
    disable the default email validation and create your own validation
    function, more flexible. You can see a
    sample
    we did for the custom validation trying to validate a password
    strength and confirm the password.
    Cristian

  • Validate Blackberry email address

    Good day everyone
    I need assistance wrt the above subject line. I want to validate my email address, however I cannot remember my password and my recovery question answer as well. I've tried the information on the BB website but its still not working. Please help me.....

    Hi and welcome to the forums!
    If you know the email address and you can;t validate it, there's a chance you can change the information and retry the validate process. The attached link shows all the needed steps.
    As far as forgetting the password and the recovery question as well, 3 strikes your out!
    It pains me to have to suggest this but you'll have to call your wireless service provider. 
    Thanks,
    Bifocals
    Blackberry Internet service manual
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • BT can not validate my email address, another **bl...

    Honest, you couldn't make it up.
    I have had BT Smart Talk on one mobile since it came out, it has its uses so I thought I'll put it on my second phone as well.
    Got through the " Setting up my account "... eventually.
    Even received the pin number via my landline, moments later....... looking good.
    Seconds later an email to say  " Hello, blah, blah, blah "............. with some nice blue lettering to say  " Activate your account now."
    One last step to go, I click on it and get.......................... " We are unable to validate your email address "
    So BT send me an email, to one of my BT email addresses that I have had for over 10 years, yet they are unable to verify one of their addresses, that seconds before they used to send me a message. 
    It only takes one extra straw so.............................
    Another long standing BT customer (40 years ) who will now be re-organising all his BT emails and porting my contacts over to my Googlemail account, then a perusal of other ISP's who have some very atractive offers on, short term and long term, then I'll be jumping ship, I'm out of contract so the time and place is entirely up to me.
    It won't have been a financial decision, because BT are more expensive, I don't mind paying that bit extra as long as I get good service, now I'm not.
    Both my sons left BT a year or two ago, after being customers in their own right, after leaving home ( about 15 years ) because of carp service, they have never looked back, faster speeds, cheaper and, to date, excellent customer service.
    Just hang on I'll give it another click................ no I won't ............ it's logged me out in the time it's taken me to type this.
    As I said you couldn't make it up.

    As Jimmy Cricket says " And there's more. "
    Ding dong, a text message arrives on the phone in question.
    From BT.
    " Thanks for your patience, you can now start using BT Smart Talk, please re-open the app to complete the registration process. "
    Great, open the app as I've been told, push the continue button....................... you know what's coming, yes back to square one
    It's like playing a continuous game of snakes and ladders with BT, with loaded dice and at every other throw I go sliding down to square one.

  • How to validate an email address against free domain users

    Hi all,
    I want to validate an email address so that only users of non free domains (let's say other than yahoo, hotmail, gmail, etc) can create an account in my apex application.
    I want to place a validation on the "Registration Page" but I am not sure how to proceed from then on :(
    Does anybody know how I can do this ?
    Kind Regards,
    Ana-Maria

    Hi Ana-Maria,
    You can do this on two places. You can do it on the client (using javascript) or you can do this on the database (using a trigger or a check constraint). The best way is to do both.
    Use something like this for the javascript bit:
    <script type="text/javascript">
    function checkemail(){
      var email = $v('P4_EMAIL');
      //get index of @
      var x = email.indexOf('@');
      //get the string behind @
      var behind_amp = email.substring(x+1, email.length);
      //get the index of the .
      var y = behind_amp.indexOf('.');
      //filter out the provider
      var provider = behind_amp.substring(0, y);
      var result;
      // set all wrong providers in this case
      switch(provider){
        case 'hotmail': result=false;break;
        case 'yahoo': result=false;break;
        case 'gmail': result=false;break;
      // Check the result
      if (!result){
        //The provider is bad
        alert(provider + ' is not allowed!');
        //Keep the focus on the email field
        setTimeout(function(){$x('P4_EMAIL').focus();}, 5);
    </script>Set the event to the onchange of the email field (in HTML Form Element Attributes):
    onchange="checkemail();"Hope this helps,
    Greetings Rutger

  • Cannot validate an email address

    I have a Bold 9700 and a Curve 8320.
    The Bold has, for want of a technical term, borked. It was in an endless reboot loop and I couldn't do anything to get it out of it.
    Anyway, I've put the sim card into an old, unlocked but still fully working Curve.
    It connects to the network fine - ie I can get SMSs and access the web via the browser.
    But I can't setup my email.
    You go to the add email page.
    It says: 'A new Blackberry device has been detected. You must move your email accounts to receive email on this device. To move an email account, you will need to type the email account password. At least one email account must be moved to set up email on this device.'
    <It then list my two email addresses>
    'Email delivery to your old device has been stopped'
    At this point you can't add a new email address (I can't find any way to add a new email address)
    If you click cancel, it totally cancels.
    So, you can only click 'Move email account'
    You do that, it lists the current email address with a space to enter the password, then click 'validate'
    So I've done that - the password IS correct.
    But every time, it just says: 'An error occurred while accessing your account. Please click below to try again. Link: Access Another Email Account'
    If you click that link it takes you back to the start and you go around in the same circle.
    So I'm left not being able to validate any of my email addresses - or being able to add a new one.

    solid20 wrote:
    i have the same problem i have a BB torch and i have a curve with a vodafone SIM i switched the SIM cards for 5 minutes to try something then i returned the SIM again to the torch then it said new device has been detected then i stopped to receive any email and the same message appeared about the validation, i cant validate my e mail even am inserting a correct password and am sure it has nothing to do with the company service i called they couldnt help i have been trying to fix this problem for a week but it seems that this is a real critical problem, please guys i need help if any1 knows how to fix this problem.
    regards,
    Hi and welcome
    Having added to this thread, is it safe to assume you have tried any of the suggested already.
    Have you tried pulling the battery with the power on, leaving the battery out for a couple of minutes. Then do the same thing but take the SIM out, replace the battery. Then repeat but replace the SIm.
    Let us know the outcome, hopefully this will avoid a complete wipe and reinstallation of the OS.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • How to validate a email address using Validation Pattern?

    Hi,
    is there any document for Validation Pattern? i m looking for a way to validate email addresses in my form.
    it's going to be something like * @ .
    i have no idea of how to do this, or maybe validation pattern is no good? use java script instead?
    any advice is appreciated!
    thanks.

    Hi erv2,
    You just need to place this script in the "exit" event of the field that u r using for email address.
    var r = new RegExp(); // Create a new Regular Expression Object.
        r.compile("^[a-z0-9_\\-\\.]+\\@[a-z0-9_\\-\\.]+\\.[a-z]{2,3}$","i");
    if( this.rawValue == null || this.rawValue == "")
    else
    var result = r.test(this.rawValue);                                              
    if (result == true) // If it fits the general form,
         true;               
    else
          xfa.host.messageBox("Please enter a valid email address ");
          this.rawValue = "";
          false;               // fail the validation.
    Thanks
    Amita
    Edited by: amita arora on Jan 20, 2009 10:44 AM

  • How to validate Email Address in HTML DB Application

    Hi,
    I have delevoped one Employee Login Details form in HTML DB. But i am unable to validate that email address as i find html db is not supporting String functions like indexOf(char c), substring(int) ect. So please can anybody help me to know how to validate email address that it has @ and . symbol or not.
    Thanks in advance.

    user529382,
    You may be able to use Regular Expressions instead, if you do a search in this forum for 'regex' you should find a few hits.
    While I agree that using a regular expression is a great way to verify that the user has entered an email address that conforms to the regular expression rules, it is still nothing more than that....conforming to the regular express rules.
    The only way to 100% confirm that an email address is 'valid', is to actually send an email to it, so what I tend to do is to get the user to enter their email twice (in a user registration screen for example), that way you can minimize the chance of 'typos', then send out a 'verification email' that the user has to click a link on to verify they have received it (I'm sure you've seen this type of system before), only when the confirmation is received would I then make the account 'active'.
    Hope this helps.

  • Validate Email Address on ChangeOwnData iView

    All,
    We would like to have the ESS changeowndata iView validate the email address so that the user is unable to enter an invalid value when changing their address.   From the searching I have done, it does not appear that ESS delivers a valid BADI to check the value and produce an error message. 
    Basically, when they are on step 2 of the roadmap (EDIT), they should not be able to navigate to step 3 (REVIEW AND SAVE) if the value they entered is invalid.
    We are on ECC6 with EP7.
    Am I missing something?
    Brian Snyder

    Hi Brian,
    Most of the time i have found that if you are enhancing the RFC and passing the error mesaage to it, it is not handled by portal application and a dump occurs with your error message or in some casesnothing happens at all.
    Seems like you need to do validation in the RFC and modify the webdynpro java application using NWDI track to display error message and stop further navigation.
    Regards
    Vishal kapoor

  • Validate email address and http link

    Could anyone please post procedures for verifying email addresses and http links in PL/SQL?

    What exactly you'd like to validate in email address?

  • How do I validate my already validated email address?

    I just updated my appleid to the new email address style format, and now itunes and my iphone both want me to validate the email address, but both claim it is already validated.
    I attempted to use the applid.apple.com website to manage / validate my email, but no matter how many times I click the resend button, nothing comes.
    Any ideas on how I can get my address validated?

    Try resetting the Apple ID password.
    Apple - My Apple ID
    Something here might help also.  Frequently Asked Questions About Apple ID

  • Posting contact form to variable email address PHP

    Hi all, another one!
    I want the email address to be the hidden variable in the form below - variable higlighted in Red. What would I put for "$to ="?
    Any help would be appreciated.
    Tom
    <?php
    if (array_key_exists('send' , $_POST)) {
              // mail processing script
              // remove escape characters from POST array
    if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
      function stripslashes_deep($value) {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
      $_POST = array_map('stripslashes_deep', $_POST);
    $to = '';
              $subject = '';
              //list expected fields
              $expected = array('name', 'email', 'comments');
              //set required fields
              $required = array('name', 'comments');
              //create empty array for any missing fields
              $missing = array();
              // assume that there is nothing suspect
              $suspect = false;
              // create a pattern to locate suspect phrases
              $pattern = '/Content-Type:|Bcc:|Cc:/i';
                // function to check for suspect phrases
      function isSuspect($val, $pattern, &$suspect) {
        // if the variable is an array, loop through each element
              // and pass it recursively back to the same function
              if (is_array($val)) {
          foreach ($val as $item) {
                  isSuspect($item, $pattern, $suspect);
                } else {
          // if one of the suspect phrases is found, set Boolean to true
                if (preg_match($pattern, $val)) {
            $suspect = true;
              // check  the $_POST array and any subarrays for suspect content
              isSuspect($_POST, $pattern, $suspect);
              if ($suspect) {
                        $mailSent = false;
                        unset($missing);
              } else {
              //proces the $_POST Variables
              foreach ($_POST as $key => $value) {
                        //assign temporary variable and strip whitespace if not an array
                        $temp = is_array($value) ? $value: trim($value);
                        //if empty and required, add to $missing array
                        if (empty($temp) && in_array($key, $required)) {
                                  array_push($missing, $key);
                        } elseif (in_array($key, $expected)) {
                                  //otherwise, assign to a variable of the same name as $key
                                  ${$key} = $temp;
              // validate the email address
      if (!empty($email)) {
        // regex to identify illegal characters in email address
        $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
              // reject the email address if it doesn't match
        if (!preg_match($checkEmail, $email)) {
          $suspect = true;
          $mailSent = false;
          unset($missing);
              //go ahead ONLY if not suspect and all required fields OK
              if (!$suspect && empty($missing)) {
              // build the message
              $message = "Name: $name\r\n\r\n";
              $message .= "Email: $email\r\n\r\n";
              $message .= "Message: $comments\r\n\r\n";
              //limit line length to 70 characters
              $message = wordwrap($message, 70);
              //Create aditional headers
              $headers = "From: Website Enquiry\r\n";
              $headers .= 'Content-Type: text/plain; charset=utf-8';
              if (!empty($email)) {
              $headers .= "\r\nReply-To: $email";
              //send it
              $mailSent = mail($to, $subject, $message, $headers);
              if ($mailSent) {
                        //$missing is no longer needed if the email is sent, so unset it
                        unset($missing);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <?php
    if ($_POST && $mailSent) { ?>
    <META HTTP-EQUIV="Refresh" CONTENT="5;URL=index.php">
    <?php } ?>
    <title></title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-11804201-5']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body<?php if ($_POST && $mailSent){ ?> onLoad="redirect()"<?php } ?>>
    <img src="images/photography/background.jpg" alt="Jack Wilesmith Furniture Design" class="bg" id="bg" />
    <div id="container">
      <div id="Header">
      </div>
      <div id="content">
    <?php
    if ($_POST && isset($missing) && !empty($missing)) {
              ?>
        <p class="warning"><strong>Please complete the missing item(s) indicated.</strong></p><br />
        <?php
    } elseif ($_POST && !$mailSent) {
              ?>
        <p class="warning"><strong>Sorry, there was a problem sending your message, please try again later. </strong></p><br />
              <?php
    } elseif ($_POST && $mailSent) {
              ?>
        <p><strong>Your Message has been sent succesfully - <strong>You will be redirected in 5 seconds</strong></strong></p><br />
    <SCRIPT LANGUAGE="JavaScript"><!--
    function redirect () { setTimeout("go_now()",5000); }
    function go_now ()   { window.location.href = "index.php"; }
    //--></SCRIPT>
        <?php } ?>
        <form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <p>
          <label for="name">Name:</label><br />
          <input name="name" type="text" class="textInput" id="name"
          <?php if (isset($missing)) {
    echo 'value="' . htmlentities($_POST['name'], ENT_COMPAT, 'UTF-8') . '"';
    ?>
          /> <?php
                if (isset($missing) && in_array('name', $missing)) {?> <span class="warning">Please enter your name</span><?php } ?>
        </p><br />
        <p>
          <label for="email">Email:</label><br />
          <span id="sprytextfield1">
          <input name="email" type="text" class="textInput" id="email"
          <?php if (isset($missing)) {
    echo 'value="' . htmlentities($_POST['email'], ENT_COMPAT, 'UTF-8') . '"';
    ?>
          />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
          <?php
                if (isset($missing) && in_array('email', $missing)) {?> <span class="warning">Please enter your Email Address</span><?php } ?>
        </p><br />
        <legend></legend>
        <p>
          <label for="comments">Message:</label><br />
          <textarea name="comments" id="comments" cols="45" rows="5"><?php if (isset($missing)) {
                        echo htmlentities($_POST['comments'], ENT_COMPAT, 'UTF-8');
                } ?></textarea><?php
                if (isset($missing) && in_array('comments', $missing)) {?> <span class="warning">Please enter a Message</span><?php } ?>
        </p><br />
        <p class="clearIt">
          <input name="send" type="submit" id="send" value="Send message" />
        </p>
         <input name="email" type="hidden" id="email" value="[email protected]" />
    </form>
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email", {isRequired:false, hint:"[email protected]"});
    //-->
    </script>
    </body>
    </html>

    Lovely, simple but beautiful!
    Thanks for that.
    T

  • Need a way to verify from SAP if an email address really exists

    Hi Guru,
    I need a way to verify from SAP if an email address really exists.
    Thanks in advance
    Soufiene

    Hello,
    Try the following code. It gives an option of using a webservice to validate an email address. This piece of code may help in solving your query.
    PARAMETERS: p_mail(100) LOWER CASE.                 " E-Mail id to be verified
    DATA: http_client TYPE REF TO if_http_client .
    DATA: w_string TYPE string ,
          w_result TYPE string ,
          r_str    TYPE string .
    DATA: result_tab TYPE TABLE OF string.
    START-OF-SELECTION .
      CLEAR w_string .
      CONCATENATE
      'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
    INTO
      w_string .
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url                = w_string
        IMPORTING
          client             = http_client
        EXCEPTIONS
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          OTHERS             = 4.
       CALL METHOD http_client->send
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2.
        CALL METHOD http_client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.
      CLEAR w_result .
      w_result = http_client->response->get_cdata( ).
       REFRESH result_tab .
      SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .
       READ TABLE result_tab INTO r_str INDEX 2.
      IF r_str+44(1) = 't'.
        WRITE:/ 'Valid email address'.
      ELSE.
        WRITE:/ 'Invalid email address'.
      ENDIF.
    Regards,
    Sachin

  • Facetime is not "verifying" my email address

    On my macbook pro (newest version of Mavericks) trying to open facetime.  I sign in and then facetime shows my email address asking if that is the one I'd like to use to send calls.  I click the check mark so that the email address I want is selected and then click next.  A little pinwheel appears at the top of the window next to the word "verifying".  It's been "verifying" my email address for over a half hour now with no progress that I can detect.  I've used facetime in the past week and was not asked to verify my email, so I don't understand what the problem is.  I'd rather not have to pay to reinstall a program I already have, either. 
    Does anyone have a solution?

    Hey nimbus,
    Thanks for the question. Were you sent a verification email? If so, you’ll want to follow the instructions in that email:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/TS4185
    If you are unable to activate FaceTime, try the following:
    Sign in to FaceTime for Mac using a valid Apple ID. After you validate the email address for use with FaceTime, other FaceTime users can connect to you using that email address. If you encounter issues registering or using an Apple ID account:
    - Ensure that you have an active Internet connection.
    - Verify that you are using a valid Apple ID at appleid.apple.com. You can also create an Apple ID or reset your password from this website.
    - Check that your email address is verified in FaceTime > Preferences.
       - If FaceTime > Preferences shows your email status as "verifying," follow the instructions in the verification email that was sent to complete the process.
    - Toggle FaceTime off and on in FaceTime > Preferences.
    - If still unable to Sign In follow the instructions in FaceTime, Game Center, Messages on OS X: Troubleshooting Sign in
    Thanks,
    Matt M.

  • Validating Input Email Address via regex

    Hi Experts,
    We have a requirement to validate Input email address for External Partners to be an email address from non-client domain.
    Planning to validate the same using regex in 'Validation' tab of custom attribute 'Z_TEMP_EMAIL_EXT', mapped to the UI task used for External User ID creation.
    Client has two email domains, namely '[email protected]' and '[email protected]'
    I have arrived at below regex for validating the client domain; and attempts to ensure these are NOT input (negative condition) are not working.
    Please suggest how to validate regex for NOT including these domains. 
    (1) "^(.*)[\@](clientabc|xyzclient)[\.](com)"
    (2) "^(.*)[\@](clientabc|xyzclient)[\.](.*)"
    (3) "(\Qclientabc\E)|(\Qxyzclient\E)"
    With Regards,
    Ganesh.S

    Hello Ganesh,
    you want negative lookahead with alternation, like this:
    .+@(?!clientabc\.com$|xyzclient\.com$).+
    Please note, though, that the above regex does not provide any POSITIVE guarantee that the input is a valid SMTP address as specified by RFC2821.
    It just provides a negative guarantee that the input is NOT an SMTP address from domains clientabc.com or xyzclient.com.
    Best regards,
    Lambert

Maybe you are looking for