107 regular expressions found in this category!
     
    
    
	
	    
   Displaying page
of
 pages;
Items  to 
	
    
    
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[0-9]*(\.)?[0-9]+$ | 
                
                    | Description | it will check for the +ve decimal numbers | 
                
                    | Matches | 1 | 123 | 132.132 | 
                
                    | Non-Matches | 1.2.2 | -123 | 
                
                    | Author | Rating:  himraj love | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^0$|^[1-9][0-9]*$|^[1-9][0-9]{0,2}(,[0-9]{3})$ | 
                
                    | Description | I need a pattern to match the whole number / integer (0-99999...), but also allow users to put comma in the thousand positions. 
This is what I got. | 
                
                    | Matches | 1234 | 0 | 12,345 | 
                
                    | Non-Matches | 12,3245 | -1 | 1234.23 | 
                
                    | Author | Rating:  Harry Chou | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^(\d|,)*\d*$ | 
                
                    | Description | matches 0 and all positive integers only. will accept comma formatting only. | 
                
                    | Matches | 1234 | 1,234 | 1,234,567 | 
                
                    | Non-Matches | 1234.0 | -1234 | $1234 | 
                
                    | Author | Rating:  Donald Schneider | 
            
        
        
	    
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[0-9]+$ | 
                
                    | Description | Validate a string to see if it contains a number / integer | 
                
                    | Matches | 1234567890 | 1234567890 | 1234567890 | 
                
                    | Non-Matches | http://none | http://none | http://none | 
                
                    | Author | Rating:  Mr M | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$ | 
                
                    | Description | Matches currency input with or without commas. | 
                
                    | Matches | $3,023,123.34 | 9,876,453 | 123456.78 | 
                
                    | Non-Matches | 4,33,234.34 | $1.234 | abc | 
                
                    | Author | Rating:  Brian Orrell | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[1-9]+[0-9]*$ | 
                
                    | Description | Allows only positive integers that are greater then 0. Easily modified for +/- intergers and allowing zero. | 
                
                    | Matches | 1 | 12 | 124 | 
                
                    | Non-Matches | -1 | a | 1.0 | 
                
                    | Author | Rating:  William Powell | 
            
        
        
	    
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$ | 
                
                    | Description | A regular expression that matches numbers. Integers or decimal numbers with or without the exponential form. | 
                
                    | Matches | 23 | -17.e23 | +.23e+2 | 
                
                    | Non-Matches | +.e2 | 23.17.5 | 10e2.0 | 
                
                    | Author | Rating:  Erik Pettersson | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\-?\(?([0-9]{0,3}(\,?[0-9]{3})*(\.?[0-9]*))\)?$ | 
                
                    | Description | Match a positive or negative decimal value with any precision and scale.  Allows for left-padded zeroes, commas as group separator, negative sign (-) or parenthesis to indicate negative number. | 
                
                    | Matches | 0.123 | (1234.123) | -01,200 | 
                
                    | Non-Matches | 2.3.123 | 1,23.45 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Rich Franzmeier | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^(?!\u00a2)  #Don't allow cent symbol
 \p{Sc}?     #optional unicode currency symbols
 (?!0,?\d)   #don't allow leading zero if 1 or more unit
 (?:\d{1,3}    # 1 to 3 digits
 (?:([, .])\d{3})?  # if there is a separator it must be followed by 3 digits
 (?:\1\d{3})*  # if the is more than two groups the same separtor must but used, it must be followed by 3 digits
|(?:\d+))      # more than 3 digit with no comma separator
((?!\1)[,.]\d{2})?$  # option cents | 
                
                    | Description | Internationally capable currency formats.  It is NOT local aware.  Should be modify for local specific validations.
More detail at http://blogs.regexadvice.com/mash/archive/2004/06/08/1246.aspx | 
                
                    | Matches | $9,876,543.21 | €9 876 543,21 | €9.876.543,21 | 
                
                    | Non-Matches | 9.876.543.21 | 9,876,543,21 | 9 876 543 21 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Michael Ash | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\$?(\d{1,3}(\,\d{3})*|(\d+))(\.\d{0,2})?$ | 
                
                    | Description | From Author: DON'T USE THIS ONE. FIND MY OTHER ONE THAT BLOCKS LEADING ZEROS.  My site also couldn't swallow the \d, so I switched to numeric ranges and it worked fine.
KEYWORDS Currency Money Dollar 
 | 
                
                    | Matches | $0,234.50 | 0234.5 | 0,234. | 
                
                    | Non-Matches | $1,23,50 | $123.123 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Tom Persing | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^(
    100(?:\.0{1,2})?
    |
    0*?\.\d{1,2}
    |
    \d{1,2}(?:\.\d{1,2})?
)%
$ | 
                
                    | Description | Matches a percentage between 0 and 100 (inclusive).  Accepts up to 2 decimal places. | 
                
                    | Matches | 0% | 100% | .17% | 
                
                    | Non-Matches | 101% | -17 | 99.006% | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Darren Neimke | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[-+]?[0-9]\d{0,2}(\.\d{1,2})?%?$ | 
                
                    | Description | Required and regular expression validator. For supporting 
-999.99 to +999.99 . Positive and Negative integer/ decimal validations. Percentage sign is also supported. Will not allow empty strings. Can increase/decrease the range as you need. | 
                
                    | Matches | 12.3 | 123 | -123.45 | 
                
                    | Non-Matches | - | 10.1234 | -1234 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Error Reporter | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | (^(((\d)|(\d\d)|(\d\d\d))(\xA0|\x20))*((\d)|(\d\d)|(\d\d\d))([,.]\d*)?$) | 
                
                    | Description | For who use a space as thousands separator like french, deutsch .... | 
                
                    | Matches | 1 200 | 1 241 588.14567 | 123 | 
                
                    | Non-Matches | az | 1254.456 | 1234 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            krest krest | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^[1-9]{1}$|^[1-4]{1}[0-9]{1}$|^50$ | 
                
                    | Description | Match any number between 1 and 50, no characters, no empty sets, and not zero. Match numbers greater than 1 and less than 51, no spaces, no characters. | 
                
                    | Matches | 1 | 23 | 50 | 
                
                    | Non-Matches | 0 | 111 | xyz | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Michael Gaertner | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | (^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$) | 
                
                    | Description | Accepts only positive decimal values. Zero and negatvie numbers are non-matching. Allows zeros after last non-zero numeric value after decimal place for significant digits. | 
                
                    | Matches | 0.050 | 5.0000 | 5000 | 
                
                    | Non-Matches | 0 | 0.0 | .0 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Bri Gipson | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\$[+-]?([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(\.[0-9]{1,2})?$ | 
                
                    | Description | This expression is little tricky since the $ sign is includeded in the
		expression itself. So whenever you want to make use of the expression be
		sure to prepend $ sign to the value if it's not present. | 
                
                    | Matches | $-1 | $-1.0 | $1,234.42 | 
                
                    | Non-Matches | anything that doesn't start with $ | $.13 | $2. | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Chandrasing Patil | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^([1-9]|[1-9]\d|100)$ | 
                
                    | Description | This pattern matches whole numbers 1-100.  | 
                
                    | Matches | 1 | 50 | 100 | 
                
                    | Non-Matches | 0 | .5 | 101 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Manny Ruiz | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$ | 
                
                    | Description | This is permit all decimal number, exclude all alphanumeric caracter | 
                
                    | Matches | 123456.123456 | 123456,123456 | 123456 | 
                
                    | Non-Matches | 123a.123 | 123a,123 | a | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Hugues Gauthier | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | ^\d?\d'(\d|1[01])"$ | 
                
                    | Description | Height notation for feet (') and inches(") | 
                
                    | Matches | 6'3" | 5'11" | 10'0" | 
                
                    | Non-Matches | 9 Feet 2 inches | 5'12" | 5'2 1/2" | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Michael Ash | 
            
        
            
                
                    | Title | Test
                        Details
                        
                            Pattern Title | 
                
                    | Expression | (^[0]{1}$|^[-]?[1-9]{1}\d*$) | 
                
                    | Description | This is a regular expression I used to validate negative and positive WHOLE numbers, including 0. | 
                
                    | Matches | 0 | 123 | -123 | 
                
                    | Non-Matches | 001 | -012 | -002 | 
                
                    | Author | Rating:
                        
Not yet rated.
                        
                            Les Portugal | 
            
        
	
	    
   Displaying page
of
 pages;
Items  to