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 8172161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:41:47+00:00 2026-06-06T21:41:47+00:00

I have a regular expression to validate a input value. At this point I

  • 0

I have a regular expression to validate a input value.

At this point I have:

([0-9]{0,3}[.]?)*[0-9]{1,3},[0-9]*|[0-9]

Its working, but now I need to add a validation to see if the value is not 0,00

The input is an amount value.
Possible values:

12,31
1.234,56
1.234.567,89

Not possible values:

0,00

I need this to use in dijit.form.ValidationTextBox .
Something like:

dijit.byId(nameID).regExp = "([0-9]{0,3}[.]?)*[0-9]{1,3},[0-9]*|[0-9]";
  • 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-06-06T21:41:49+00:00Added an answer on June 6, 2026 at 9:41 pm

    I think you have to rethink your regurlar expression completely, because it testes true strings like “1.23.4,56” and “0,”, but I don’t think it’s what you want.

    Try something like this:

    (?:(?:[1-9]\d{0,2})(?:\.\d{3})*(?:,\d{2})|0,(?:[1-9]\d|0[1-9]))
    

    Test your regular expression with RegExr, but keep in mind that Javascript doesn’t support all the features of the most complete regex engines. In fact, it’s quite poor.

    Some more notes:

    1. Don’t use the token [.] to match a dot. It’s slow. Just escape the dot: \.
    2. You can use \d instead of [0-9] for short, and you can use it in square brackets too: [a-f\d\-] for all hexadecimal integer chars.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this regular expression to help me validate a form input. var nrExp
I have a regular expression ( \d{4}\w{3}(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-3])([0-5][0-9]){2} ) that I need to validate the
So right now I have an input validation method structured something like this: function
I have this regular expression to validate the URL: ^[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$^ . This regular expression
Does anyone have a Regular Expression to validate legal FQDN? Now, I use on
I have this regular expression below to validate a security question where some one
i have a regular expression on ASP.net textbox control that validate for user input
i want a regular expression to validate string to have only text,operators and these
I have this Regular Expression that matches the following strings: <!-- 09-02-2009 ---> <!--
How can I have a regular expression that tests for spaces or tabs, but

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.