Open Source & Stuff  
  |     Main Site     |      Forum     |     Contact     |
Java script :  forum.Salix.gr forum.Salix.gr
Little scripts that might be helpful. It's more like a repository of commonly used functions. Have something you want to share? post it here!! 
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
messageValidate if string contains a Signed Int
Posted by: panos (IP Logged)
Date: July 07, 2006 04:10PM

    function isSignedInt(testStr) {
        var reg1;
        var outVal=false;

        reg1= "^-?[0-9][0-9]*$";
        re = new RegExp(reg1);
        if( re.test(testStr) )
            outVal = true;
        return(outVal);
    }



Sorry, only registered users may post in this forum.

All Rights Reserved 2006 Salix.gr  |  Design by Ades Design |  Hosting by e-emporio |  forum.Salix.gr powered by Phorum