| Title | Test
                    Find
                    
                    Pattern Title | 
            
                | Expression | ^([0-5]?\d?\d?\d?\d|6[0-4]\d\d\d|65[0-4]\d\d|655[0-2]\d|6553[0-5])$ | 
            
                | Description | match for 0 - 65535 | 
            
                | Matches | 0 | 65535 | 59999 | 
            
                | Non-Matches | 123456 | 69999 | 65599 | 
            
                | Author | Rating:  Friedel Wittrock | 
            
                | Source |  | 
            
              | Your Rating |  | 
        
    
 
    
    
     
        
                
	                Title: Regular Expression for Numbers
	                Name: Kavita Harduth
	                Date: 11/13/2013 5:21:31 AM
	                Comment: 
Hi Friedel
Could you please assist me, I am trying to locate an expression that will only allow numbers in the range of 00 - 55.
Do you know the expression for this?
Thank you.
Kavita
                
                
            
                
	                Title: Answer
	                Name: Friedel Wittrock
	                Date: 6/14/2005 11:06:49 AM
	                Comment: 
it was a big application with many rules and regex,
all in a xml-config-file and not hardcoded ;-)
                
                
            
                
	                Title: Lame
	                Name: Me
	                Date: 6/13/2005 7:13:47 PM
	                Comment: 
Much cleaner; waaaaaay faster:
if(0<=var && var<=65535) ...
                
                
            
                
	                Title: Answer
	                Name: Friedel Wittrock
	                Date: 1/7/2005 7:11:52 AM
	                Comment: 
is specifically made for an application, which expects exactly a value between 0 and 65535, inclusive the 0 and 65535,
otherwise it throws an exception
                
                
            
                
	                Title: port
	                Name: John
	                Date: 1/6/2005 6:38:53 PM
	                Comment: 
Is this expression specifically made to check for the correct ports within range?