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

218
Views
RegEx: Match numbers greater or equal than 1001

I would like to match numbers greater than or equal to 1001(or '1001'). I tried the following pattern "^(^[1-9][0-9]{3,4}$)$". It matches from 1000 and above.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

(?!^1000$)^[1-9]\d{3,}$

Short Explanation

  • (?!^1000$) Except the number 1000
  • ^[1-9]\d{3,}$ Match 4 and more length numbers

JavaScript Example

let regex = /(?!^1000$)^[1-9]\d{3,}$/;

console.log(regex.test("1000"));
console.log(regex.test("1001"));
console.log(regex.test("10000"));
console.log(regex.test("99995555"));

See the regex demo

about 4 years ago · Juan Pablo Isaza 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!