RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^p(ost)?[ |\.]*o(ffice)?[ |\.]*(box)?[ 0-9]*[^[a-z ]]*
Description
This expression is useful for determining if an address is a PO Box type address. This can be useful in shipping systems as well as other systems that need to make determinations based on the type of address imputed.
Matches
po box 4353
Non-Matches
pollo St. | P. O. Box d3f12s | BOX 23
Author Rating: Not yet rated. Darryl Kuhn
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Does not work, as well
Name: Jim Horton
Date: 4/22/2004 3:09:43 PM
Comment:
Works in tester, but does not work on .aspx page


Title: Does not work
Name: Tim Cartwright
Date: 3/22/2004 2:40:49 PM
Comment:
I could not get your regex to make ANY kind of match, using the tester page or my own code.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials