Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: regex

  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,994
    Thanks
    120
    Thanked 76 Times in 76 Posts

    regex

    Code:
    var patt1=new RegExp("[^A-Z]{0,7}");
    
    document.write(patt1.test("NASKRUH"));--> true
    
    var patt1=new RegExp("[^A-Z]{7}");
    
    document.write(patt1.test("NASKRUH"));--> false !?
    EDIT: OK I see it now.
    Last edited by BubikolRamios; 12-06-2012 at 05:08 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •