#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    0

    Regex needed should allow <=1.000 decimal


    I need a regex that should only allow expression of format 1.00, 0.10 . No negative numbers. Less than 1.

    tjx
  2. #2
  3. No Profile Picture
    User 165270
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2005
    Posts
    497
    Rep Power
    937
    Originally Posted by raafi
    I need a regex that should only allow expression of format 1.00, 0.10 . No negative numbers. Less than 1.

    tjx
    Okay, do you have a problem with your own regex, or are you looking for someone to do it for you? I see no actual question in your post.
  4. #3
  5. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,759
    Rep Power
    9397
    I seriously doubt that you need a regular expression for this.

    Comments on this post

    • ManiacDan agrees

IMN logo majestic logo threadwatch logo seochat tools logo