Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    61
    Vote Rating
    0
    Shyru is on a distinguished road

      0  

    Default [2.2.1] Regression: Email Validator validates correct mail addresses as false

    [2.2.1] Regression: Email Validator validates correct mail addresses as false


    In Ext 2.2.1 the email-validator was changed a little bit to fix hanging browsers. (As explained in the changelog)

    Unfortunatly this also broke validation for some valid emails. All emails containting a dash (-) are now not validated as correct email addresses.

    You can easily check this behaviour in the form example page:
    http://extjs.com/deploy/dev/examples/form/dynamic.html

    Enter the valid address: test.test@example.com - all ok
    Enter the valid address: test-test@example.com - not validated as correct email.

    You can check in an example of Ext 2.2 the email test-test@example.com correctly passes validation.

    I tried to fix the bug myself changing the regular expression and undoing one of the added slashes of the change from 2.2 to 2.2.1, but that did not fix the Bug. I'm also not a RegExp guru, and don't know which bugs in browser where corrected by the change introduced in 2.2.1.
    Could anybody provide a fixed RegExp?

  2. #2
    Ext User 72's Avatar
    Join Date
    Apr 2007
    Location
    Czech republic, EU
    Posts
    152
    Vote Rating
    0
    72 is on a distinguished road

      0  

    Default


    Confirms this bug. I don't know why is that, but we can hope that v3 will be released sooner or later
    72

  3. #3
    Ext User shibubh's Avatar
    Join Date
    Jul 2007
    Location
    Lamahi,Dang Nepal
    Posts
    449
    Vote Rating
    0
    shibubh is on a distinguished road

      0  

    Default


    try this regExp
    Code:
     /^([\w\-]+)(\.[\w]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/;
    Shibu Bhattarai

    Use JavaScript beautifier to beautify you code http://jsbeautifier.org/

    Code Conventions http://javascript.crockford.com/code.html

    ExtJS Core Manual http://extjs.com/products/extcore/manual/

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Not exactly.

    The Ext 2.2 regexp was:
    Code:
    var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;
    (the . wildcard was obviously wrong)

    This was fixed in Ext 2.2.1 by prefixing the . with a \:
    Code:
    var email = /^([\w]+)(\.[\w]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/;
    The only problem is that it now only allows word characters (A-Za-z0-9_) a no other characters (!#$%&'*+-/=?^`{|}~). Of these characters at least - should be supported:
    Code:
    var email = /^([\w\-]+)(\.[\w\-]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/;

  5. #5
    Sencha User
    Join Date
    Aug 2008
    Location
    Minnesota
    Posts
    24
    Vote Rating
    0
    usiw is on a distinguished road

      0  

    Default More accurate

    More accurate


    Here is a regular expression pulled from a larger, more RFC correct regex that should suffice for nearly all real world email addresses:

    Code:
    ^(?!\.)(?>\.?[a-zA-Z\d!#$%&'*+\-/=?^_`{|}~]+)+@((?!-)[a-zA-Z\d\-]+(?<!-)\.)+[a-zA-Z]{2,}$
    I pulled out support for
    Code:
    "my name" <my_email@domain.com>
    type emails as well as the
    Code:
    email@[120.90.90.120]
    format to simplify things.

  6. #6
    Sencha User
    Join Date
    Jan 2009
    Location
    Ktm, Nepal
    Posts
    22
    Vote Rating
    0
    raj_zero1 is on a distinguished road

      0  

    Default Help !!! email validation using regex

    Help !!! email validation using regex


    i hab a problem with email validation using regex... m fine with email validation for emails like:
    abc.xyz_123-abc@something.com
    but the problem is i have to allow character ' too... bt i donno what will be regex.
    example of email can be:
    abc_123-abc's.nepal@something.com

    i need help ..

  7. #7
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by raj_zero1 View Post
    i need help ..
    http://extjs.com/learn/Ext_Forum_Help

  8. #8
    Sencha User
    Join Date
    Jan 2009
    Location
    Ktm, Nepal
    Posts
    22
    Vote Rating
    0
    raj_zero1 is on a distinguished road

      0  

    Default solution to regex email validation

    solution to regex email validation


    i found the solution to email validation for email such as
    abc.123-abc'nepal@mavendeveloper.com

    the solution to this is

    regex :/^([\w\-\'\-]+)(\.[\w-\'\-]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/

    http://www.mavendeveloper.com
    Last edited by raj_zero1; 31 Mar 2010 at 8:36 AM. Reason: spelling mistake in url

  9. #9
    Sencha User
    Join Date
    May 2007
    Posts
    191
    Vote Rating
    0
    temporary is on a distinguished road

      0  

    Default


    Looks like this is still not fixed in 2.3.0 and 3.0.0

  10. #10
    Sencha User
    Join Date
    May 2007
    Posts
    191
    Vote Rating
    0
    temporary is on a distinguished road

      0  

    Default


    And we have two valid TLDs with 6 chars now - .travel and .museum