Email Reg Expression

dear all :
i am using ADF 10 with WLS 11
i am using the following regular expression for email account :
<af:validateRegExp pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$" id="nr3hj" messageDetailNoMatch="#{viewBundle.PleaseInsertValidEmail}"/> and it work fine .
but i need to force the end user to add the email as the following
[email protected]
her i can add ABC@yahoo without (.) dot ,
so how i can force the end user to add (.) dot in his email like .com , .net , .etc .
Best Regards

bara,
Try [url http://tinyurl.com/lfugwr]this link
John

Similar Messages

  • Validate through Reg Expression

    Hi,
    I have following requirement to be achieved through reg expressions.
    Need to write a boolean method which takes a String parameter that should satisfy following conditions.
    o 20 character length string.
    o First 9 characters will be a number
    o Next 2 characters will be alphabets
    o Next 2 characters will be a number.(1 to 31 or 99)
    o Next 1 character will be an alphabet
    o Last 6 characters will be a number.
    JDev 11.1.1.6.0

    Hi,
    Hope following links are useful
    https://blogs.oracle.com/shay/entry/regular_expression_validation
    http://www.vogella.com/articles/JavaRegularExpressions/article.html

  • CFINPUT Reg Expression Validation Pattern Help

    I've got a form with a non-required field that needs to meet
    some validation requirements (Numbers, Letters, 'space character'
    or 'blank, empty string' only) if the user chooses to fill it
    out...
    I'm using CFINPUT tag with the following settings, does my
    Reg Expression pattern look OK?
    REQUIRED="No"
    VALIDATE="regular_expression"
    PATTERN="^[a-zA-Z *]{1,40}$"
    MAXLENGTH="40"
    Thanks for any help. I'm v. new to regular expressions (10
    hrs education at Google Univ.)
    Sincerely,
    Paul Cross

    I think you want something more like this:
    ^[a-zA-Z0-9 ]{0,40}$

  • Reg expression help

    Can/will you help me make a regular expression for these characters? I want to replace eveyone occurance in a string contianing these chars
    \/:*"<>|
    with
    right now I am doing a string.replaceAll(...) on each char but I was wanting to combine that to one reg expression. What cha got? I am doing this b/c I am generating file names and those are not valid chars allowed in file names.
    Thanks
    Doopterus

      String regex = "[*<>/'\"\\\\]";In a character class (i.e., between the square brackets), "|" has no special meaning.

  • After an automatic update yesterday, I can only print email (Outlook Express 6) headers but the messages do not print. I now have Firefox 3.6.22.

    After an automatic update recently, I can only print email (Outlook Express 6) headers but the messages do not print. I now have Firefox 3.6.22.

    Thanks John for the suggestion.  I was finally able to dwonload the newest drivers today when I signed on.  Seems like if you let one day go by Software Update will look at your version of the driver and will finally let you download the newest.  That did not help.  Nothing but communication errors.  It would not even let me load the the new driver as it would no longer ever see the printer.
    Yesterday, for further explanation, I was working at the computer when I heard the printer chime a few times.  When I looked over the green light, which normally signals it is receiving a file to print, was flashing away.  I was doing nothing and I finally had to turn it off.  I spoke with another techie friend who is a big Mac user and has the same printer and he suggested it may be the USB circuit.  This printer has been on for 5 years with a few days off.  We have concluded the circuits are past their useful life and I will soon send the printer to be recycled somewhere.  A new printer is on the way as I need this device.
    Again, thank you for your suggestion and I will mark this solved due to mechanical failure.

  • After an automatic update yesterday, I can only print email (Outlook Express 6) headers but the messages do not print

    After an automatic update yesterday, I started having problems printing emails from Outlook Express 6. The headers (e.g. To, From, Subject) print, but the messages do not print.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Email Regular Expression with a String.Match()

    I'm currently using a RichTextEditor for a user to build HTML
    for a site. However, I want the application to scan for emails and
    encode them so they are protected from spam bots when they go to
    the live site. I've written a regular expression to find an email
    and it seems to work, but it only returns one email at a time from
    the string. I have had to revert to a while loop to traverse the
    string until I'm satisfied. I don't particularly like that method
    and would like to just do one String.match() query to retrieve all
    of the emails. Can anyone see something here that I'm missing?

    Try adding the global flag (g):
    var emailPattern:RegExp =
    /[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]+/g;
    TS

  • Problem with email regular expression

    I found the following regular expression from this website : http://www.regular-expressions.info/email.html
    \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\bor
    ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$I am using the following website to check its success, as well as my java app. : http://www.regexplanet.com/simple/index.html
    of course java has a problem with the illegal escape character so i add another "/".
    In both of my testing scenarios the regex value seems to fail. Am I missing something here?
    If anyone could also test this regex and verify or correct my problem I would be very grateful.
    Edited by: rico16135 on Jun 5, 2010 4:01 PM
    Edited by: rico16135 on Jun 5, 2010 4:02 PM

    rico16135 wrote:
    of course java has a problem with the illegal escape character so i add another "/".I seem to be missing the distinction between a forward slash / which is not an escape character, and a backslash \ which is.
    Also, if you show your actual Java code (in code tags, of course), and describe clearly and precisely what's going wrong--pasting in the exact, complete error message and indicating clearly which line caused it, if there is one--people will be in a better position to help you.

  • All of my outgoing email [Outlook Express] is being blocked as spam.

    Can somebody help me?  I tried to contact live customer support but nobody responded.   None of my outgoing mail from Outlook Express has been able to be sent to the receivers.  The error message is the same in each case and says I should look up the spam FAQ here at Verizon to solve the issue.  The FAQ instructed me to send details to an email address - but I can't send any email!  And the problem is not just with one email.  None of them are getting through.  Any advice?  

    Double check if it's a problem with your account, or your outlook express.
    What you do is login at http://webmail.verizon.com
    IF you can send email from the website directly, then outlook express has some kind of footer, or header, or signature or background or something that is flagging your mail as spam. 
    If you can't send from the website, then definetely call into Verizon and/or do the live chat.  There is a link at the bottom of the Verizon page that says contact us. 

  • How can I, As in IE, I want to click on an icon to access my email, Outlook Express?

    I just switched from Internet Explorer 8 to Firefox 10. In IE8, I had an icon, a envelope, on my hope page that I could click on and open my Outlook Express email. How can I do that in Firefox 10?

    Your questions is slightly confusing...
    You can set your Firefox Homepage to match that of IE
    *[https://support.mozilla.org/en-US/kb/How%20to%20set%20the%20home%20page?s=Set+Homepage&r=0&e=sph&as=s Set Homepage]
    You might also read this article:
    *[http://kb.mozillazine.org/Default_mail_client#Windows Default Email Client]
    Outlook Express is Microsoft Software. Firefox is developed by Mozilla/Users. Mozilla has a email client called Thunderbird that I suggest you check out.

  • A clicked link embedded in email (Outlook Express) takes forever to open in Firefox - the file type instruction is as follows: "C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1". Why is this corrupted?

    I believe the above problem started after a recent Windows update to my PC. I found a solution. First I open My Computer, Folder Options and then File types. File types affected: (None) Hypertext Transfer Protocol and (None) Hypertext Transfer Protocol with Privacy. When I change the Advanced Application to be Used by eliminating "requestPending -osint -yrl" from the entry, email links open almost instantly again. The problem is that the change I make is not permanent. Something keeps switching it back to the corrupted form and links don't work properly from my email.

    I suspect you may need to modify your Windows registry settings to make the changes permanent. That said, I believe the command line options you wish to remove act as safeguards, I would caution against removing them.
    '''-requestPending'''<br>
    Tells the application that there will be a Windows DDE request to open the same url specified on the command line.
    (Windows DDE is a method for transferring data between applications.)
    '''-osint'''<br>
    Tells the application that it is being launched by the OS shell.
    '''-url URL'''<br>
    Open URL in a new tab or window, depend on the browser option.
    For more info, see [https://developer.mozilla.org/en/Command_Line_Options here].
    You could try removing the -requestPending option (leaving the other options) and uncheck/clear the "Use DDE" checkbox. This may speed things up.
    With regards to editing the Windows registry, please see [http://support.microsoft.com/kb/310516 here]. '''Remember to back up your registry first!'''
    I believe you will need to modify the following registry keys:
    Software\Classes\http\shell\open\command<br>
    Software\Classes\https\shell\open\command<br>
    Software\Classes\ftp\shell\open\command<br>
    Let us know how you get on.

  • Reg expression

    can somebody tell me how to write a query using regular expression instr function to find any alpha character in a string except + - .
    i have a varchar field that can contain any of the following values
    234, 345.32, -66.33, +32.
    if the value enter is 34a or +455.44v then i want to search for alpha character except the . and + sign. so i will searching for v or a.

    Something like this?
    WITH t AS (SELECT '234' col1
                FROM dual
               UNION
              SELECT '345.32'
                FROM dual
               UNION
              SELECT '-66.33'
                FROM dual
               UNION
              SELECT '+32.'
                FROM dual
               UNION
              SELECT '34a'
                FROM dual
               UNION
              SELECT '+455.44v'
                FROM dual
    SELECT t.col1
         , REGEXP_REPLACE(t.col1, '^[+-]|\.[0-9]+|[0-9]+(\.[0-9]*)?', '')
      FROM t
    WHERE NOT REGEXP_LIKE(t.col1, '^[+-]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)$') 
    ;                       C.

  • Seemingly simple, yet annoying reg. expression issue

    Hey guys,
    Im considerably familiar with the use of regular expressions in Java (and other languages), yet seem to be having a very simple problem.
    I wish to match a full stop character occuring after a space in a string, once that space does not occur after a digit.
    e.g. "went to the shop . This is another sentence"
    The code I'm using is this:
    String s = "went to the shop. This is another sentence"
    s = s.replaceAll("([^0-9]+)\\s+\\.","$1.");This doesn't seem to work, neither does:
    String s = "went to the shop. This is another sentence"
    s = s.replaceAll("(\\D+)\\s+\\.","$1.");It seems that there's a problem with the first + symbol, but I'm not sure exactly what the problem is.
    Any insights?
    Edited by: SuperGrover on Jan 19, 2009 12:35 PM

    SuperGrover wrote:
    The problem seems to occur when there's more than one occurance of the space before a fullstop in the string, so the above code doesn't work for the following string:
    "went to the shop . This is another sentence . And another"
    It only replaces the final occurance, despite using the replaceAll method.When I tested your pattern (using JRET), it matched both occurrences in the sample string!
    The matching was done by repeated invocations of the method [Matcher.find|http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#find()].
    Maybe [String.replaceAll|http://java.sun.com/javase/6/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String)] does something different internally?
    Anyway, are you aware that your expression always matches the entire string preceding the space and the dot?
    This is probably not really what you are looking for. You may want to try this expression instead, which uses negative lookbehind:
    (?<!\d)\s+\.Edited by: McNepp on 20.01.2009 09:47

  • Reg Expression in af:validateRegEx

    Since I can't use my custom validator class (See post Custom validator closes dialog on failure I am trying to use the same regular expression in an <af:validateRegExp> on an <af:inputText>.
    I have tested my regular expression in a completely separate tester that I wrote and it works for every test case I throw at it.
    I put the regular expression inside my custom validator class and it works as expected as well, but I can't use it for above posted reasons.
    So now I've put the regular expression in my backing bean as a private attribute and created a getter method for it. In the validationRegExp component, I used an EL expression to point to the attribute in my backing bean. When I run and put in the same test values, they fail validation.
    The documenation for the validateRegExp says it uses java regular expression syntax, so I shouldn't have to change the regex between the custom validator and the validator component.
    Any ideas?
    Al

    What doesn't work:
    Every success test value that I put in the input text box fails validation. Or maybe I should say that every value I put in the input text box fails validation, although one would expect the failure test value to fail validation, so obviously the issue is that a valid success test value fails validation using the <af:validateRegEx> component with the same regex used in the custom validation class where the same input passes validation.
    What is the issue I see:
    That success test values fail validation using the <af:validateRegEx> component.
    Implentation:
    <af:popup id="resetPasswordPopup"
              binding="#{pageFlowScope.backing_Bean.resetPasswordPopup}">
    <af:dialog id="resetPasswordDialog" type="none"
               title="Reset Password">
    <af:panelGroupLayout layout="vertical">
    <af:outputText value="Enter temporary password for user:"/>
    <af:spacer width="10" height="10"/>
    <af:inputText label="Temporary Password"
                  value="#{pageFlowScope.backing_Bean.temporaryPassword}"
                  required="true">
    <af:validateRegExp pattern="#{pageFlowScope.backing_Bean.passwordRegEx}"
                       hint="Password should be ...."/>
    <!--<f:validator validatorId="passwordValidator"/>-->
    </af:inputText>
    </af:panelGroupLayout>
    <f:facet name="buttonBar">
    <af:panelGroupLayout layout="horizontal" halign="center">
    <af:commandButton text="Yes"
                      action="resetUserPassword"
                      partialSubmit="true"/>
    <af:spacer width="10" height="10"/>
    <af:commandButton text="No" immediate="true">
    <af:returnActionListener/>
    </af:commandButton>
    </af:panelGroupLayout>
    </f:facet>
    </af:dialog>
    </af:popup>

  • Help with Reg Expression Start method

    Hi there,
    I've been looking through some examples of regular expressions and I've became totally unglued at what the start method of the Matcher class returns.
    Here's the example...
    Passing in "\d*" ab34ef to the following code
    import java.util.regex.*;
    public class Class1
      public static void main(String []args)
        Pattern p= Pattern.compile(args[0]);
        Matcher m=p.matcher(args[1]);
        boolean b=false;
        while (b=m.find())
          int x=m.start();
          String y=m.group();
          System.out.print(x + y);
    }Gives the output
    01234456
    I understand eveything apart from the 6 character. How can m.start()return 0 (at the start) and 6 at the end when the string being searched is 6 characters long.
    My head hurts.

    The fact that a string is an array of characters under the hood is just an implementation detail, and it's getting in your way. What start() returns is the beginning position of a substring which may have a length of zero.
    The first time through the loop, the regex matches a zero-length substring at the beginning of the target string. That's the position preceding the first character, index 0. Then, because the match didn't consume any characters, the Matcher moves ahead one position before trying again. Another zero-length match, another bump-along, and now it's at index 2. This time, the regex can actually match some characters. It matches the substring "34", and that brings us to the part that's really confusing. Because the previous match consumed some characters, the Matcher doesn't do a bump-along before attempting the next match. It matches a zero-length substring at index 4, right where the previous match ended. Then it bumps along to index five and does another zero-length match.
    Now, you and I know that the character at index 5 is the last one in a string whose length is 6, so there's no reason to look for any more matches at this point. And if the regex were required to match at least one character, the Matcher wouldn't bother trying again. But in this case a zero-length match is considered valid, and there's one more position where that's possible. It does one last bump-along and matches nothing once more.

Maybe you are looking for

  • SRM 7.0, PO details are not getting populated in Contract History Tab

    Hello Folks, I am stuck with an issue and would need your help regarding that. Scenario: (Extended Classic Scenario) SRM version 7 A catagory Contract is created. Shopping cart created with Contract as the source of supply. Once the SC is approved PO

  • Using BAPI_PO_CREATE1 : Linking service, and account assignment

    Hello, I have trouble when using BAPI_PO_CREATE1. When creating PO using BAPI_PO_CREATE1, I need to input service for each po item and the service itself need to have account assignment. I simplify the code below. **PO item t_poitem-po_item        =

  • PLD:Default Template

    Hi, I have assigned a PLD to a particular Busines Partner,  Now I don't wan't to assign any template to that particular BP. when I am changing the default layout it's still taking the previous template. I am using SAP 2005 B PL 39. Thanks, Uday

  • Incopy shuts down frequently

    I am working in a longish document. Every five minutes, it seems, inCopy crashes. I can post the crash report, as it appears that noone at Adobe is going to help me out voluntarily, even though inCopy crashes nearly 30 times a day. At any rate, of la

  • Unable to place jpg then Missing PDF Plugins Format.aip

    Something happened suddenly, everything was fine this morning. I opened a new file...Then I tried to place a jpg and it wouldn't allow me. I started getting some missing plugin errors, tried to relaunch illustrator and I cannot. I get the Missing Req