User Tools

Site Tools


regex:numbers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
regex:numbers [2022/09/20 23:13] peterregex:numbers [2022/09/20 23:13] (current) peter
Line 20: Line 20:
 ---- ----
  
- 
-Positive Integer, excluding 0 
- 
-<code> 
-^[1-9]\d*$ 
-</code> 
- 
-or 
- 
-<code> 
-^([1-9][0-9]*){1,3}$ 
-</code> 
- 
-or 
- 
-<code> 
-^\+?[1-9][0-9]*$ 
-</code> 
- 
----- 
- 
-Negative Integer, excluding 0 
- 
-<code> 
-^-[1-9]\d*$ 
-</code> 
- 
-or 
- 
-<code> 
-^\-[1-9][0-9]*$ 
-</code> 
- 
----- 
- 
-Positive Integer 
- 
-<code> 
-^\d+$ 
-</code> 
- 
-or 
- 
-<code> 
-^[1-9]\d*|0$ 
-</code> 
- 
----- 
- 
-Negative Integer 
- 
-<code> 
-^-[1-9]\d*|0$ 
-</code> 
- 
-or 
- 
-<code> 
-^((-\d+)|(0+))$ 
-</code> 
- 
----- 
  
  
regex/numbers.1663715582.txt.gz · Last modified: 2022/09/20 23:13 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki