Skip to content
No results
  • About Us
  • Contact
  • Privacy Policy
  • Regular Expression Cheatsheet
  • Sample Page
  • Submit Regular Expression
Regex Pattern
  • Home
  • Dates & Times
  • URI
  • Strings
  • Numbers
  • Markup & Programming
Regex Pattern
Home Numbers Positive Integer Regular Expression

Positive Integer Regular Expression

A regular expression to match a positive integer value like 10, 20, 100, etc.

/^\d+$/

Matches:

  • 0
  • 100
  • 2000

Non-matches:

  • 123.45
  • -100
  • abcd

See Also:

  • Regular Expression To Check If Number Is Float
  • Negative Number Regular Expression
Previous Post Regular Expression For Formatted Number With Space As Thousand Separator
Next Post Positive Decimal Regular Expression

More Like This:

Regex To Match Whitespaces Between Words

Regex To Match Chinese/Japanese/Korean Characters

Regex To Match Content Between HTML Tags

No results

Latest Regex

  • Regex To Match Whitespaces Between Words
  • Regex To Match Chinese/Japanese/Korean Characters
  • Regex To Match Content Between HTML Tags
  • US EIN (Employer Identification Number) Regular Expression
  • Regex To Match Numbers Containing Only Digits, Commas, and Dots

Popular Tags

Amazon Audio AWS Bible BitTorrent Credit Card Digit Email File Google Hash Image IP Address Linux Markdown Postal Code stock Underscore URK URL Vehicle Registration Number Video Whitespace Windows Youtube zip code

Trending now

BitTorrent Magnet Link Regular Expressioned2k Link Regular ExpressionXunlei (Thunder) Link Regular ExpressionUUID & GUID Regular Expression

Copyright © 2026 - Regexpattern.com

  • About Us
  • Contact
  • Privacy Policy
  • Cheatsheet
  • Submit