Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7546691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:15:52+00:00 2026-05-30T09:15:52+00:00

I am busy working on this and thought I would put it our there.

  • 0

I am busy working on this and thought I would put it our there.

It must be a number with a maximum of 3 units and maximum of 5 decimal places etc

Valid

  • 999.99999
  • 99.9
  • 9
  • 0.99999
  • 0

Invalid

  • -0.1
  • 999.123456
  • AAA
  • AAA.99999

EDIT It needs to be greater than or equal to zero.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:15:53+00:00Added an answer on May 30, 2026 at 9:15 am

    In light of your recent changes to the question, here is an updated regex which will match all >= 0 and <1000

    ^\d{1,3}(?:\.\d{1,5})?$
      ^\___/ \/ ^\/\___/ |
      |  ^   ^  | |  |   `- Previous is optional (group of dot and minimum 1 number between 0-9 and optionally 4 extra numbers between 0-9)
      |  |   |  | |  `- Match 1-5 instances of previous (single number 0-9)
      |  |   |  | `- Match a single number 0-9
      |  |   |  `- The dot between the 1-3 first number(s) and the 1-5 last number(s).
      |  |   `- This round bracket should not create a backreference
      |  `- Match 1-3 instances of previous (single number 0-9)
      `- Match a single number 0-9
    

    ^ is start of line, $ is end of line.

    Valid

    • 999.99999
    • 999.0
    • 999
    • 99.9
    • 99.0
    • 99
    • 9
    • 0.1
    • 0.01
    • 0.001
    • 0.0001
    • 0.99999
    • 0.01234
    • 0.00123
    • 0.00012
    • 0.00001
    • 0.0
    • 0.00000
    • 0
    • 000.00000
    • 000

    Invalid

    • -0.1
    • 999.123456
    • AAA
    • AAA.99999
    • 0.
    • .123
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MacHG I get this message: Mercurial reported error number 255:abort: Resource busy I'm
I'm working on translating a CUDA application ( this if you must know )
After a few busy nights my head isn't working so well, but this needs
Hey there. been a busy debugger today. ill give ths short version. ive made
I'm currently busy working on an IP ban tool for the early versions of
I am busy working on a java app to run on blackberries but on
I am working with a .Net 1.1 web application. There is a Save button
Newbie to this forum... I was working on something lately and encountered a problem.
I am busy with the validation plugin and i get it not working on
This question deals with concurrency issues, for suggestions on how to display a busy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.