Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

323
Views
JS Regex for number from 0,1-100 (allow comma)

I'm trying to get a regex for just numbers from 0,1 to 100 with max. 2 digits after the comma.

valid examples:

1
8,55
99,5

invalid examples:

0
100,5
88,25222
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

The regex /^(((0(\,\d{1,2}))|(([1-9]|([1-9][0-9]))(\,\d{1,2})?))|(100(\,0{1,2})?))$/ will:

Accept 0,1, 1, 8,55, 99,5
Reject 0, 100,5, 88,25222

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!